| @@ 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) { |
|
| @@ 4787-4796 (lines=10) @@ | ||
| 4784 | private function normalizeFields(array $fields) |
|
| 4785 | { |
|
| 4786 | $normalized = array(); |
|
| 4787 | foreach ($fields as $field) { |
|
| 4788 | $normalized[] = new Field( |
|
| 4789 | array( |
|
| 4790 | 'id' => 0, |
|
| 4791 | 'value' => ($field->value !== null ? true : null), |
|
| 4792 | 'languageCode' => $field->languageCode, |
|
| 4793 | 'fieldDefIdentifier' => $field->fieldDefIdentifier, |
|
| 4794 | ) |
|
| 4795 | ); |
|
| 4796 | } |
|
| 4797 | usort( |
|
| 4798 | $normalized, |
|
| 4799 | function ($field1, $field2) { |
|