| @@ 2499-2508 (lines=10) @@ | ||
| 2496 | /* END: Use Case */ |
|
| 2497 | ||
| 2498 | $actual = array(); |
|
| 2499 | foreach ($reloadedContent->getFields() as $field) { |
|
| 2500 | $actual[] = new Field( |
|
| 2501 | array( |
|
| 2502 | 'id' => 0, |
|
| 2503 | 'value' => ($field->value !== null ? true : null), // Actual value tested by FieldType integration tests |
|
| 2504 | 'languageCode' => $field->languageCode, |
|
| 2505 | 'fieldDefIdentifier' => $field->fieldDefIdentifier, |
|
| 2506 | ) |
|
| 2507 | ); |
|
| 2508 | } |
|
| 2509 | usort( |
|
| 2510 | $actual, |
|
| 2511 | function ($field1, $field2) { |
|
| @@ 5672-5681 (lines=10) @@ | ||
| 5669 | private function normalizeFields(array $fields) |
|
| 5670 | { |
|
| 5671 | $normalized = array(); |
|
| 5672 | foreach ($fields as $field) { |
|
| 5673 | $normalized[] = new Field( |
|
| 5674 | array( |
|
| 5675 | 'id' => 0, |
|
| 5676 | 'value' => ($field->value !== null ? true : null), |
|
| 5677 | 'languageCode' => $field->languageCode, |
|
| 5678 | 'fieldDefIdentifier' => $field->fieldDefIdentifier, |
|
| 5679 | ) |
|
| 5680 | ); |
|
| 5681 | } |
|
| 5682 | usort( |
|
| 5683 | $normalized, |
|
| 5684 | function ($field1, $field2) { |
|