| @@ 153-157 (lines=5) @@ | ||
| 150 | if (array_key_exists('controller', $configuration)) { |
|
| 151 | $this->assertEquals($admin->getConfiguration()->getControllerName(), $configuration['controller']); |
|
| 152 | } |
|
| 153 | if (array_key_exists('max_per_page', $configuration)) { |
|
| 154 | $this->assertEquals($admin->getConfiguration()->getMaxPerPage(), $configuration['max_per_page']); |
|
| 155 | } else { |
|
| 156 | $this->assertEquals($admin->getConfiguration()->getMaxPerPage(), 25); |
|
| 157 | } |
|
| 158 | } |
|
| 159 | } |
|
| 160 | ||
| @@ 132-136 (lines=5) @@ | ||
| 129 | if (array_key_exists('controller', $configuration)) { |
|
| 130 | $this->assertEquals($admin->getConfiguration()->getControllerName(), $configuration['controller']); |
|
| 131 | } |
|
| 132 | if (array_key_exists('max_per_page', $configuration)) { |
|
| 133 | $this->assertEquals($admin->getConfiguration()->getMaxPerPage(), $configuration['max_per_page']); |
|
| 134 | } else { |
|
| 135 | $this->assertEquals($admin->getConfiguration()->getMaxPerPage(), 25); |
|
| 136 | } |
|
| 137 | if (!array_key_exists('actions', $configuration)) { |
|
| 138 | $configuration['actions'] = [ |
|
| 139 | 'create' => [], |
|