| @@ 2470-2479 (lines=10) @@ | ||
| 2467 | /* END: Use Case */ |
|
| 2468 | ||
| 2469 | $actual = array(); |
|
| 2470 | foreach ($reloadedContent->getFields() as $field) { |
|
| 2471 | $actual[] = new Field( |
|
| 2472 | array( |
|
| 2473 | 'id' => 0, |
|
| 2474 | 'value' => ($field->value !== null ? true : null), // Actual value tested by FieldType integration tests |
|
| 2475 | 'languageCode' => $field->languageCode, |
|
| 2476 | 'fieldDefIdentifier' => $field->fieldDefIdentifier, |
|
| 2477 | ) |
|
| 2478 | ); |
|
| 2479 | } |
|
| 2480 | usort( |
|
| 2481 | $actual, |
|
| 2482 | function ($field1, $field2) { |
|
| @@ 5227-5236 (lines=10) @@ | ||
| 5224 | private function normalizeFields(array $fields) |
|
| 5225 | { |
|
| 5226 | $normalized = array(); |
|
| 5227 | foreach ($fields as $field) { |
|
| 5228 | $normalized[] = new Field( |
|
| 5229 | array( |
|
| 5230 | 'id' => 0, |
|
| 5231 | 'value' => ($field->value !== null ? true : null), |
|
| 5232 | 'languageCode' => $field->languageCode, |
|
| 5233 | 'fieldDefIdentifier' => $field->fieldDefIdentifier, |
|
| 5234 | ) |
|
| 5235 | ); |
|
| 5236 | } |
|
| 5237 | usort( |
|
| 5238 | $normalized, |
|
| 5239 | function ($field1, $field2) { |
|