| @@ 32-36 (lines=5) @@ | ||
| 29 | if (array_key_exists('controller', $configuration)) { |
|
| 30 | $this->assertEquals($admin->getConfiguration()->getControllerName(), $configuration['controller']); |
|
| 31 | } |
|
| 32 | if (array_key_exists('max_per_page', $configuration)) { |
|
| 33 | $this->assertEquals($admin->getConfiguration()->getMaxPerPage(), $configuration['max_per_page']); |
|
| 34 | } else { |
|
| 35 | $this->assertEquals($admin->getConfiguration()->getMaxPerPage(), 25); |
|
| 36 | } |
|
| 37 | if (!array_key_exists('actions', $configuration)) { |
|
| 38 | $configuration['actions'] = [ |
|
| 39 | 'create' => [], |
|
| @@ 112-116 (lines=5) @@ | ||
| 109 | if (array_key_exists('controller', $configuration)) { |
|
| 110 | $this->assertEquals($admin->getConfiguration()->getControllerName(), $configuration['controller']); |
|
| 111 | } |
|
| 112 | if (array_key_exists('max_per_page', $configuration)) { |
|
| 113 | $this->assertEquals($admin->getConfiguration()->getMaxPerPage(), $configuration['max_per_page']); |
|
| 114 | } else { |
|
| 115 | $this->assertEquals($admin->getConfiguration()->getMaxPerPage(), 25); |
|
| 116 | } |
|
| 117 | } |
|
| 118 | } |
|
| 119 | ||