| @@ 2558-2567 (lines=10) @@ | ||
| 2555 | /* END: Use Case */ |
|
| 2556 | ||
| 2557 | $actual = array(); |
|
| 2558 | foreach ($reloadedContent->getFields() as $field) { |
|
| 2559 | $actual[] = new Field( |
|
| 2560 | array( |
|
| 2561 | 'id' => 0, |
|
| 2562 | 'value' => ($field->value !== null ? true : null), // Actual value tested by FieldType integration tests |
|
| 2563 | 'languageCode' => $field->languageCode, |
|
| 2564 | 'fieldDefIdentifier' => $field->fieldDefIdentifier, |
|
| 2565 | ) |
|
| 2566 | ); |
|
| 2567 | } |
|
| 2568 | usort( |
|
| 2569 | $actual, |
|
| 2570 | function ($field1, $field2) { |
|
| @@ 5848-5858 (lines=11) @@ | ||
| 5845 | private function normalizeFields(array $fields) |
|
| 5846 | { |
|
| 5847 | $normalized = array(); |
|
| 5848 | foreach ($fields as $field) { |
|
| 5849 | $normalized[] = new Field( |
|
| 5850 | array( |
|
| 5851 | 'id' => 0, |
|
| 5852 | 'value' => ($field->value !== null ? true : null), |
|
| 5853 | 'languageCode' => $field->languageCode, |
|
| 5854 | 'fieldDefIdentifier' => $field->fieldDefIdentifier, |
|
| 5855 | 'fieldTypeIdentifier' => $field->fieldTypeIdentifier, |
|
| 5856 | ) |
|
| 5857 | ); |
|
| 5858 | } |
|
| 5859 | usort( |
|
| 5860 | $normalized, |
|
| 5861 | function ($field1, $field2) { |
|