Exemplo n.º 1
0
 /**
  * @depends testReindexRowAfterMassAction
  * @magentoAppArea adminhtml
  */
 public function testReindexRowAfterDelete()
 {
     $this->productSecond->delete();
     $products = $this->search('Simple Product Common');
     $this->assertCount(1, $products);
     $this->assertEquals($this->productFirst->getId(), $products[0]->getId());
 }
Exemplo n.º 2
0
 public function testIndexerAfterDeleteCommitProduct()
 {
     $this->categoryIndexerMock->expects($this->once())->method('reindexRow');
     $this->productFlatProcessor->expects($this->once())->method('reindexRow');
     $this->productPriceProcessor->expects($this->once())->method('reindexRow');
     $this->assertSame($this->model, $this->model->delete());
 }
Exemplo n.º 3
0
 /**
  * @magentoAppArea adminhtml
  */
 public function testReindexRowAfterDelete()
 {
     $this->indexer->reindexAll();
     $this->productBanana->delete();
     $products = $this->search('Simple Product');
     $this->assertCount(4, $products);
 }
Exemplo n.º 4
0
 /**
  * @magentoAppArea adminhtml
  */
 public function testReindexRowAfterDelete()
 {
     $this->testReindexRowAfterEdit();
     $this->productBanana->delete();
     $products = $this->search('Simple Product');
     $this->assertCount(4, $products);
     $this->assertEquals($this->productApple->getId(), $products[0]->getId());
     $this->assertEquals($this->productOrange->getId(), $products[1]->getId());
     $this->assertEquals($this->productPapaya->getId(), $products[2]->getId());
     $this->assertEquals($this->productCherry->getId(), $products[3]->getId());
 }
Exemplo n.º 5
0
 /**
  * {@inheritdoc}
  */
 public function delete()
 {
     $pluginInfo = $this->pluginList->getNext($this->subjectType, 'delete');
     if (!$pluginInfo) {
         return parent::delete();
     } else {
         return $this->___callPlugins('delete', func_get_args(), $pluginInfo);
     }
 }