| @@ 2214-2223 (lines=10) @@ | ||
| 2211 | /* END: Use Case */ |
|
| 2212 | ||
| 2213 | $actual = array(); |
|
| 2214 | foreach ($reloadedContent->getFields() as $field) { |
|
| 2215 | $actual[] = new Field( |
|
| 2216 | array( |
|
| 2217 | 'id' => 0, |
|
| 2218 | 'value' => ($field->value !== null ? true : null), // Actual value tested by FieldType integration tests |
|
| 2219 | 'languageCode' => $field->languageCode, |
|
| 2220 | 'fieldDefIdentifier' => $field->fieldDefIdentifier, |
|
| 2221 | ) |
|
| 2222 | ); |
|
| 2223 | } |
|
| 2224 | usort( |
|
| 2225 | $actual, |
|
| 2226 | function ($field1, $field2) { |
|
| @@ 4885-4894 (lines=10) @@ | ||
| 4882 | private function normalizeFields(array $fields) |
|
| 4883 | { |
|
| 4884 | $normalized = array(); |
|
| 4885 | foreach ($fields as $field) { |
|
| 4886 | $normalized[] = new Field( |
|
| 4887 | array( |
|
| 4888 | 'id' => 0, |
|
| 4889 | 'value' => ($field->value !== null ? true : null), |
|
| 4890 | 'languageCode' => $field->languageCode, |
|
| 4891 | 'fieldDefIdentifier' => $field->fieldDefIdentifier, |
|
| 4892 | ) |
|
| 4893 | ); |
|
| 4894 | } |
|
| 4895 | usort( |
|
| 4896 | $normalized, |
|
| 4897 | function ($field1, $field2) { |
|