Example #1
0
 public function testGetNbResults()
 {
     $totalCount = 123;
     $indexerQuery = $this->getMock('Oro\\Bundle\\SearchBundle\\Extension\\Pager\\IndexerQuery', array('getTotalCount'), array(), '', false);
     $indexerQuery->expects($this->once())->method('getTotalCount')->will($this->returnValue($totalCount));
     $this->pager->setQuery($indexerQuery);
     $this->assertEquals($totalCount, $this->pager->getNbResults());
 }