Example #1
0
 public function testRowStyle()
 {
     $grid = new Datagrid();
     $this->assertFalse($grid->hasRowStyles());
     $grid->addRowStyle($this->getMock('ZfcDatagrid\\Column\\Style\\Bold'));
     $this->assertCount(1, $grid->getRowStyles());
     $this->assertTrue($grid->hasRowStyles());
     $grid->addRowStyle($this->getMock('ZfcDatagrid\\Column\\Style\\Italic'));
     $this->assertCount(2, $grid->getRowStyles());
     $this->assertTrue($grid->hasRowStyles());
 }