| @@ 2141-2150 (lines=10) @@ | ||
| 2138 | /* END: Use Case */ |
|
| 2139 | ||
| 2140 | $actual = array(); |
|
| 2141 | foreach ($reloadedContent->getFields() as $field) { |
|
| 2142 | $actual[] = new Field( |
|
| 2143 | array( |
|
| 2144 | 'id' => 0, |
|
| 2145 | 'value' => ($field->value !== null ? true : null), // Actual value tested by FieldType integration tests |
|
| 2146 | 'languageCode' => $field->languageCode, |
|
| 2147 | 'fieldDefIdentifier' => $field->fieldDefIdentifier, |
|
| 2148 | ) |
|
| 2149 | ); |
|
| 2150 | } |
|
| 2151 | usort( |
|
| 2152 | $actual, |
|
| 2153 | function ($field1, $field2) { |
|
| @@ 4722-4731 (lines=10) @@ | ||
| 4719 | private function normalizeFields(array $fields) |
|
| 4720 | { |
|
| 4721 | $normalized = array(); |
|
| 4722 | foreach ($fields as $field) { |
|
| 4723 | $normalized[] = new Field( |
|
| 4724 | array( |
|
| 4725 | 'id' => 0, |
|
| 4726 | 'value' => ($field->value !== null ? true : null), |
|
| 4727 | 'languageCode' => $field->languageCode, |
|
| 4728 | 'fieldDefIdentifier' => $field->fieldDefIdentifier, |
|
| 4729 | ) |
|
| 4730 | ); |
|
| 4731 | } |
|
| 4732 | usort( |
|
| 4733 | $normalized, |
|
| 4734 | function ($field1, $field2) { |
|