| @@ 2655-2664 (lines=10) @@ | ||
| 2652 | /* END: Use Case */ |
|
| 2653 | ||
| 2654 | $actual = array(); |
|
| 2655 | foreach ($reloadedContent->getFields() as $field) { |
|
| 2656 | $actual[] = new Field( |
|
| 2657 | array( |
|
| 2658 | 'id' => 0, |
|
| 2659 | 'value' => ($field->value !== null ? true : null), // Actual value tested by FieldType integration tests |
|
| 2660 | 'languageCode' => $field->languageCode, |
|
| 2661 | 'fieldDefIdentifier' => $field->fieldDefIdentifier, |
|
| 2662 | ) |
|
| 2663 | ); |
|
| 2664 | } |
|
| 2665 | usort( |
|
| 2666 | $actual, |
|
| 2667 | function ($field1, $field2) { |
|
| @@ 6020-6030 (lines=11) @@ | ||
| 6017 | private function normalizeFields(array $fields) |
|
| 6018 | { |
|
| 6019 | $normalized = array(); |
|
| 6020 | foreach ($fields as $field) { |
|
| 6021 | $normalized[] = new Field( |
|
| 6022 | array( |
|
| 6023 | 'id' => 0, |
|
| 6024 | 'value' => ($field->value !== null ? true : null), |
|
| 6025 | 'languageCode' => $field->languageCode, |
|
| 6026 | 'fieldDefIdentifier' => $field->fieldDefIdentifier, |
|
| 6027 | 'fieldTypeIdentifier' => $field->fieldTypeIdentifier, |
|
| 6028 | ) |
|
| 6029 | ); |
|
| 6030 | } |
|
| 6031 | usort( |
|
| 6032 | $normalized, |
|
| 6033 | function ($field1, $field2) { |
|