Example #1
0
 public function testToHtmlPreparesColumns()
 {
     $this->_columnSetMock->expects($this->once())->method('setRendererType');
     $this->_columnSetMock->expects($this->once())->method('setFilterType');
     $this->_columnSetMock->expects($this->once())->method('setSortable');
     $this->_block->setColumnRenderers(array('filter' => 'Filter_Class'));
     $this->_block->setColumnFilters(array('filter' => 'Filter_Class'));
     $this->_block->setSortable(false);
     $this->_block->toHtml();
 }