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