| Conditions | 1 |
| Paths | 1 |
| Total Lines | 17 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 16 | public function actionsDataProvider(): array |
||
| 17 | { |
||
| 18 | return [ |
||
| 19 | // #0, the first case - without button |
||
| 20 | [ |
||
| 21 | function (): object { |
||
| 22 | // setup |
||
| 23 | unset($_GET['create-button']); |
||
| 24 | return new ListBuilder\Simple($this->getFields(), new FakeAdapter([])); |
||
| 25 | } |
||
| 26 | ], |
||
| 27 | // #1, the second case - without button, even if we try to display it |
||
| 28 | [ |
||
| 29 | function (): object { |
||
| 30 | // setup |
||
| 31 | $_GET['create-button'] = 1; |
||
| 32 | return new ListBuilder\Simple($this->getFields(), new FakeAdapter([])); |
||
| 33 | } |
||
| 57 |