| @@ 2208-2217 (lines=10) @@ | ||
| 2205 | /* END: Use Case */ |
|
| 2206 | ||
| 2207 | $actual = array(); |
|
| 2208 | foreach ($reloadedContent->getFields() as $field) { |
|
| 2209 | $actual[] = new Field( |
|
| 2210 | array( |
|
| 2211 | 'id' => 0, |
|
| 2212 | 'value' => ($field->value !== null ? true : null), // Actual value tested by FieldType integration tests |
|
| 2213 | 'languageCode' => $field->languageCode, |
|
| 2214 | 'fieldDefIdentifier' => $field->fieldDefIdentifier, |
|
| 2215 | ) |
|
| 2216 | ); |
|
| 2217 | } |
|
| 2218 | usort( |
|
| 2219 | $actual, |
|
| 2220 | function ($field1, $field2) { |
|
| @@ 4803-4812 (lines=10) @@ | ||
| 4800 | private function normalizeFields(array $fields) |
|
| 4801 | { |
|
| 4802 | $normalized = array(); |
|
| 4803 | foreach ($fields as $field) { |
|
| 4804 | $normalized[] = new Field( |
|
| 4805 | array( |
|
| 4806 | 'id' => 0, |
|
| 4807 | 'value' => ($field->value !== null ? true : null), |
|
| 4808 | 'languageCode' => $field->languageCode, |
|
| 4809 | 'fieldDefIdentifier' => $field->fieldDefIdentifier, |
|
| 4810 | ) |
|
| 4811 | ); |
|
| 4812 | } |
|
| 4813 | usort( |
|
| 4814 | $normalized, |
|
| 4815 | function ($field1, $field2) { |
|