| @@ 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) { |
|
| @@ 4922-4931 (lines=10) @@ | ||
| 4919 | private function normalizeFields(array $fields) |
|
| 4920 | { |
|
| 4921 | $normalized = []; |
|
| 4922 | foreach ($fields as $field) { |
|
| 4923 | $normalized[] = new Field( |
|
| 4924 | [ |
|
| 4925 | 'id' => 0, |
|
| 4926 | 'value' => ($field->value !== null ? true : null), |
|
| 4927 | 'languageCode' => $field->languageCode, |
|
| 4928 | 'fieldDefIdentifier' => $field->fieldDefIdentifier, |
|
| 4929 | ] |
|
| 4930 | ); |
|
| 4931 | } |
|
| 4932 | usort( |
|
| 4933 | $normalized, |
|
| 4934 | function ($field1, $field2) { |
|