| @@ 2494-2503 (lines=10) @@ | ||
| 2491 | /* END: Use Case */ |
|
| 2492 | ||
| 2493 | $actual = array(); |
|
| 2494 | foreach ($reloadedContent->getFields() as $field) { |
|
| 2495 | $actual[] = new Field( |
|
| 2496 | array( |
|
| 2497 | 'id' => 0, |
|
| 2498 | 'value' => ($field->value !== null ? true : null), // Actual value tested by FieldType integration tests |
|
| 2499 | 'languageCode' => $field->languageCode, |
|
| 2500 | 'fieldDefIdentifier' => $field->fieldDefIdentifier, |
|
| 2501 | ) |
|
| 2502 | ); |
|
| 2503 | } |
|
| 2504 | usort( |
|
| 2505 | $actual, |
|
| 2506 | function ($field1, $field2) { |
|
| @@ 5667-5676 (lines=10) @@ | ||
| 5664 | private function normalizeFields(array $fields) |
|
| 5665 | { |
|
| 5666 | $normalized = array(); |
|
| 5667 | foreach ($fields as $field) { |
|
| 5668 | $normalized[] = new Field( |
|
| 5669 | array( |
|
| 5670 | 'id' => 0, |
|
| 5671 | 'value' => ($field->value !== null ? true : null), |
|
| 5672 | 'languageCode' => $field->languageCode, |
|
| 5673 | 'fieldDefIdentifier' => $field->fieldDefIdentifier, |
|
| 5674 | ) |
|
| 5675 | ); |
|
| 5676 | } |
|
| 5677 | usort( |
|
| 5678 | $normalized, |
|
| 5679 | function ($field1, $field2) { |
|