/** * {@inheritdoc} */ public function getProductCollection() { $pluginInfo = $this->pluginList->getNext($this->subjectType, 'getProductCollection'); if (!$pluginInfo) { return parent::getProductCollection(); } else { return $this->___callPlugins('getProductCollection', func_get_args(), $pluginInfo); } }
public function testGetProductCollection() { $this->stockHelperMock->expects($this->once())->method('addInStockFilterToCollection')->with($this->productCollection); $this->assertInstanceOf('Magento\\Catalog\\Model\\ResourceModel\\Product\\Link\\Product\\Collection', $this->model->getProductCollection()); }
public function testGetProductCollection() { $this->assertInstanceOf('Magento\\Catalog\\Model\\Resource\\Product\\Link\\Product\\Collection', $this->model->getProductCollection()); }