Example #1
0
 public function testGetTotals()
 {
     $collection = $this->_getTestCollection();
     $this->_prepareLayoutWithGrid($this->_prepareGridMock($collection));
     $this->_totalsMock->expects($this->once())->method('countTotals')->with($collection)->will($this->returnValue(new Varien_Object(array('test1' => '3', 'test2' => '2'))));
     $this->assertEquals(new Varien_Object(array('test1' => '3', 'test2' => '2')), $this->_block->getTotals());
 }