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();
 }
Example #2
0
 public function testSetSortablePropagatesSortabilityToChildrenOnlyIfSortabilityIsFalse()
 {
     $this->_columnMock->expects($this->never())->method('setSortable');
     $this->_model->setSortable(true);
 }