| @@ 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) { |
|
| @@ 5509-5518 (lines=10) @@ | ||
| 5506 | private function normalizeFields(array $fields) |
|
| 5507 | { |
|
| 5508 | $normalized = array(); |
|
| 5509 | foreach ($fields as $field) { |
|
| 5510 | $normalized[] = new Field( |
|
| 5511 | array( |
|
| 5512 | 'id' => 0, |
|
| 5513 | 'value' => ($field->value !== null ? true : null), |
|
| 5514 | 'languageCode' => $field->languageCode, |
|
| 5515 | 'fieldDefIdentifier' => $field->fieldDefIdentifier, |
|
| 5516 | ) |
|
| 5517 | ); |
|
| 5518 | } |
|
| 5519 | usort( |
|
| 5520 | $normalized, |
|
| 5521 | function ($field1, $field2) { |
|