/** * {@inheritdoc} */ public function getLoadedProductCollection() { $pluginInfo = $this->pluginList->getNext($this->subjectType, 'getLoadedProductCollection'); if (!$pluginInfo) { return parent::getLoadedProductCollection(); } else { return $this->___callPlugins('getLoadedProductCollection', func_get_args(), $pluginInfo); } }
public function testSetCollection() { $this->_block->setCollection('test'); $this->assertEquals('test', $this->_block->getLoadedProductCollection()); }