| @@ 2143-2152 (lines=10) @@ | ||
| 2140 | /* END: Use Case */ |
|
| 2141 | ||
| 2142 | $actual = array(); |
|
| 2143 | foreach ($reloadedContent->getFields() as $field) { |
|
| 2144 | $actual[] = new Field( |
|
| 2145 | array( |
|
| 2146 | 'id' => 0, |
|
| 2147 | 'value' => ($field->value !== null ? true : null), // Actual value tested by FieldType integration tests |
|
| 2148 | 'languageCode' => $field->languageCode, |
|
| 2149 | 'fieldDefIdentifier' => $field->fieldDefIdentifier, |
|
| 2150 | ) |
|
| 2151 | ); |
|
| 2152 | } |
|
| 2153 | usort( |
|
| 2154 | $actual, |
|
| 2155 | function ($field1, $field2) { |
|
| @@ 4738-4747 (lines=10) @@ | ||
| 4735 | private function normalizeFields(array $fields) |
|
| 4736 | { |
|
| 4737 | $normalized = array(); |
|
| 4738 | foreach ($fields as $field) { |
|
| 4739 | $normalized[] = new Field( |
|
| 4740 | array( |
|
| 4741 | 'id' => 0, |
|
| 4742 | 'value' => ($field->value !== null ? true : null), |
|
| 4743 | 'languageCode' => $field->languageCode, |
|
| 4744 | 'fieldDefIdentifier' => $field->fieldDefIdentifier, |
|
| 4745 | ) |
|
| 4746 | ); |
|
| 4747 | } |
|
| 4748 | usort( |
|
| 4749 | $normalized, |
|
| 4750 | function ($field1, $field2) { |
|