| @@ 2495-2504 (lines=10) @@ | ||
| 2492 | /* END: Use Case */ |
|
| 2493 | ||
| 2494 | $actual = array(); |
|
| 2495 | foreach ($reloadedContent->getFields() as $field) { |
|
| 2496 | $actual[] = new Field( |
|
| 2497 | array( |
|
| 2498 | 'id' => 0, |
|
| 2499 | 'value' => ($field->value !== null ? true : null), // Actual value tested by FieldType integration tests |
|
| 2500 | 'languageCode' => $field->languageCode, |
|
| 2501 | 'fieldDefIdentifier' => $field->fieldDefIdentifier, |
|
| 2502 | ) |
|
| 2503 | ); |
|
| 2504 | } |
|
| 2505 | usort( |
|
| 2506 | $actual, |
|
| 2507 | function ($field1, $field2) { |
|
| @@ 5298-5307 (lines=10) @@ | ||
| 5295 | private function normalizeFields(array $fields) |
|
| 5296 | { |
|
| 5297 | $normalized = array(); |
|
| 5298 | foreach ($fields as $field) { |
|
| 5299 | $normalized[] = new Field( |
|
| 5300 | array( |
|
| 5301 | 'id' => 0, |
|
| 5302 | 'value' => ($field->value !== null ? true : null), |
|
| 5303 | 'languageCode' => $field->languageCode, |
|
| 5304 | 'fieldDefIdentifier' => $field->fieldDefIdentifier, |
|
| 5305 | ) |
|
| 5306 | ); |
|
| 5307 | } |
|
| 5308 | usort( |
|
| 5309 | $normalized, |
|
| 5310 | function ($field1, $field2) { |
|