| @@ 2261-2270 (lines=10) @@ | ||
| 2258 | /* END: Use Case */ |
|
| 2259 | ||
| 2260 | $actual = array(); |
|
| 2261 | foreach ($reloadedContent->getFields() as $field) { |
|
| 2262 | $actual[] = new Field( |
|
| 2263 | array( |
|
| 2264 | 'id' => 0, |
|
| 2265 | 'value' => ($field->value !== null ? true : null), // Actual value tested by FieldType integration tests |
|
| 2266 | 'languageCode' => $field->languageCode, |
|
| 2267 | 'fieldDefIdentifier' => $field->fieldDefIdentifier, |
|
| 2268 | ) |
|
| 2269 | ); |
|
| 2270 | } |
|
| 2271 | usort( |
|
| 2272 | $actual, |
|
| 2273 | function ($field1, $field2) { |
|
| @@ 4836-4845 (lines=10) @@ | ||
| 4833 | private function normalizeFields(array $fields) |
|
| 4834 | { |
|
| 4835 | $normalized = array(); |
|
| 4836 | foreach ($fields as $field) { |
|
| 4837 | $normalized[] = new Field( |
|
| 4838 | array( |
|
| 4839 | 'id' => 0, |
|
| 4840 | 'value' => ($field->value !== null ? true : null), |
|
| 4841 | 'languageCode' => $field->languageCode, |
|
| 4842 | 'fieldDefIdentifier' => $field->fieldDefIdentifier, |
|
| 4843 | ) |
|
| 4844 | ); |
|
| 4845 | } |
|
| 4846 | usort( |
|
| 4847 | $normalized, |
|
| 4848 | function ($field1, $field2) { |
|