| @@ 99-108 (lines=10) @@ | ||
| 96 | * |
|
| 97 | * @return array |
|
| 98 | */ |
|
| 99 | private function getExpectedConfigFieldTemplates(array $config) |
|
| 100 | { |
|
| 101 | foreach ($config['system']['ezdemo_frontend_group']['field_templates'] as &$block) { |
|
| 102 | if (!isset($block['priority'])) { |
|
| 103 | $block['priority'] = 0; |
|
| 104 | } |
|
| 105 | } |
|
| 106 | ||
| 107 | return $config; |
|
| 108 | } |
|
| 109 | ||
| 110 | public function testFieldDefinitionSettingsTemplates() |
|
| 111 | { |
|
| @@ 153-162 (lines=10) @@ | ||
| 150 | * |
|
| 151 | * @return array |
|
| 152 | */ |
|
| 153 | private function getExpectedConfigFieldDefinitionSettingsTemplates(array $config) |
|
| 154 | { |
|
| 155 | foreach ($config['system']['ezdemo_frontend_group']['fielddefinition_settings_templates'] as &$block) { |
|
| 156 | if (!isset($block['priority'])) { |
|
| 157 | $block['priority'] = 0; |
|
| 158 | } |
|
| 159 | } |
|
| 160 | ||
| 161 | return $config; |
|
| 162 | } |
|
| 163 | } |
|
| 164 | ||