| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | public function testAddColumn() |
||
| 8 | { |
||
| 9 | $grid = new Grid($this->gridHelper); |
||
| 10 | $grid->addColumn('name', [ |
||
| 11 | 'title' => 'First name' |
||
| 12 | ]); |
||
| 13 | |||
| 14 | $this->assertInstanceOf(\Boduch\Grid\Column::class, $grid->getColumns()['name']); |
||
| 15 | $this->assertEquals('First name', $grid->getColumns()['name']->getTitle()); |
||
| 16 | } |
||
| 17 | |||
| 35 | } |