| @@ 2262-2271 (lines=10) @@ | ||
| 2259 | /* END: Use Case */ |
|
| 2260 | ||
| 2261 | $actual = []; |
|
| 2262 | foreach ($reloadedContent->getFields() as $field) { |
|
| 2263 | $actual[] = new Field( |
|
| 2264 | [ |
|
| 2265 | 'id' => 0, |
|
| 2266 | 'value' => ($field->value !== null ? true : null), // Actual value tested by FieldType integration tests |
|
| 2267 | 'languageCode' => $field->languageCode, |
|
| 2268 | 'fieldDefIdentifier' => $field->fieldDefIdentifier, |
|
| 2269 | ] |
|
| 2270 | ); |
|
| 2271 | } |
|
| 2272 | usort( |
|
| 2273 | $actual, |
|
| 2274 | function ($field1, $field2) { |
|
| @@ 4968-4977 (lines=10) @@ | ||
| 4965 | private function normalizeFields(array $fields) |
|
| 4966 | { |
|
| 4967 | $normalized = []; |
|
| 4968 | foreach ($fields as $field) { |
|
| 4969 | $normalized[] = new Field( |
|
| 4970 | [ |
|
| 4971 | 'id' => 0, |
|
| 4972 | 'value' => ($field->value !== null ? true : null), |
|
| 4973 | 'languageCode' => $field->languageCode, |
|
| 4974 | 'fieldDefIdentifier' => $field->fieldDefIdentifier, |
|
| 4975 | ] |
|
| 4976 | ); |
|
| 4977 | } |
|
| 4978 | usort( |
|
| 4979 | $normalized, |
|
| 4980 | function ($field1, $field2) { |
|