public function testMarkIndexerAsInvalid() { $this->_indexerRegistryMock->expects($this->once())->method('get')->with(self::INDEXER_ID)->willReturnSelf(); $this->_indexerRegistryMock->expects($this->once())->method('invalidate')->willReturnSelf(); $this->model->markIndexerAsInvalid(); }
public function testMarkIndexerAsInvalid() { $this->_indexerRegistryMock->expects($this->once())->method('get')->with(\Magento\Catalog\Model\Indexer\Category\Product::INDEXER_ID)->willReturnSelf(); $this->_indexerRegistryMock->expects($this->once())->method('invalidate')->willReturnSelf(); $this->model->markIndexerAsInvalid(); }