コード例 #1
0
 /**
  * Test execute full reindex action
  *
  * @return void
  */
 public function testExecuteFull()
 {
     $this->indexBuilder->expects($this->once())->method('reindexFull');
     $this->_eventManagerMock->expects($this->once())->method('dispatch')->with('clean_cache_by_tags', ['object' => $this->indexer]);
     $this->indexer->executeFull();
 }
コード例 #2
0
 public function testDoExecuteRow()
 {
     $id = 5;
     $this->indexBuilder->expects($this->once())->method('reindexById')->with($id);
     $this->indexer->executeRow($id);
 }
コード例 #3
0
 public function testDoExecuteRow()
 {
     $this->indexBuilder->expects($this->once())->method('reindexFull');
     $this->indexer->executeRow(5);
 }