Esempio n. 1
0
 public function testReindexAll()
 {
     $this->engine->cleanIndex();
     $this->indexer->reindexAll();
     $products = $this->search('Simple Product First');
     $this->assertCount(1, $products);
     $this->assertEquals($this->productFirst->getId(), $products[0]->getId());
     $products = $this->search('Simple Product');
     $this->assertCount(2, $products);
     $this->assertEquals($this->productFirst->getId(), $products[0]->getId());
     $this->assertEquals($this->productSecond->getId(), $products[1]->getId());
 }