Esempio n. 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(['filter' => 'Filter_Class']);
     $this->_block->setColumnFilters(['filter' => 'Filter_Class']);
     $this->_block->setSortable(false);
     $this->_block->toHtml();
 }
Esempio n. 2
0
 public function testSetSortablePropagatesSortabilityToChildrenOnlyIfSortabilityIsFalse()
 {
     $this->_columnMock->expects($this->never())->method('setSortable');
     $this->_block->setSortable(true);
 }