Exemplo n.º 1
0
 /**
  * Returns the number of results.
  *
  * @return integer
  */
 public function getNbResults()
 {
     return $this->nbResults = $this->query->getTotalCount();
 }
Exemplo n.º 2
0
 public function testGetTotalCount()
 {
     $result = $this->prepareResult();
     $this->searchIndexer->expects($this->once())->method('query')->with($this->searchQuery)->will($this->returnValue($result));
     $this->assertEquals(self::TEST_COUNT, $this->query->getTotalCount());
 }