/** * @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()); }
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()); }
/** * @magentoAppArea adminhtml */ public function testReindexRowAfterDelete() { $this->indexer->reindexAll(); $this->productBanana->delete(); $products = $this->search('Simple Product'); $this->assertCount(4, $products); }
/** * @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()); }
/** * {@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); } }