Conditions | 1 |
Paths | 1 |
Total Lines | 17 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
18 | public function testAddColumnWithDecorators() |
||
19 | { |
||
20 | $grid = new Grid($this->gridHelper); |
||
21 | $grid->addColumn('name', [ |
||
22 | 'title' => 'First name', |
||
23 | 'clickable' => function () { |
||
24 | return ''; |
||
25 | }, |
||
26 | 'decorators' => [ |
||
27 | new \Boduch\Grid\Decorators\Url() |
||
28 | ] |
||
29 | ]); |
||
30 | |||
31 | $column = $grid->getColumns()['name']; |
||
32 | |||
33 | $this->assertEquals(2, count($column->getDecorators())); |
||
34 | } |
||
35 | } |