| @@ 2206-2215 (lines=10) @@ | ||
| 2203 | /* END: Use Case */ |
|
| 2204 | ||
| 2205 | $actual = array(); |
|
| 2206 | foreach ($reloadedContent->getFields() as $field) { |
|
| 2207 | $actual[] = new Field( |
|
| 2208 | array( |
|
| 2209 | 'id' => 0, |
|
| 2210 | 'value' => ($field->value !== null ? true : null), // Actual value tested by FieldType integration tests |
|
| 2211 | 'languageCode' => $field->languageCode, |
|
| 2212 | 'fieldDefIdentifier' => $field->fieldDefIdentifier, |
|
| 2213 | ) |
|
| 2214 | ); |
|
| 2215 | } |
|
| 2216 | usort( |
|
| 2217 | $actual, |
|
| 2218 | function ($field1, $field2) { |
|
| @@ 4781-4790 (lines=10) @@ | ||
| 4778 | private function normalizeFields(array $fields) |
|
| 4779 | { |
|
| 4780 | $normalized = array(); |
|
| 4781 | foreach ($fields as $field) { |
|
| 4782 | $normalized[] = new Field( |
|
| 4783 | array( |
|
| 4784 | 'id' => 0, |
|
| 4785 | 'value' => ($field->value !== null ? true : null), |
|
| 4786 | 'languageCode' => $field->languageCode, |
|
| 4787 | 'fieldDefIdentifier' => $field->fieldDefIdentifier, |
|
| 4788 | ) |
|
| 4789 | ); |
|
| 4790 | } |
|
| 4791 | usort( |
|
| 4792 | $normalized, |
|
| 4793 | function ($field1, $field2) { |
|