/** * {@inheritdoc} */ public function setCurrentCategory($category) { $pluginInfo = $this->pluginList->getNext($this->subjectType, 'setCurrentCategory'); if (!$pluginInfo) { return parent::setCurrentCategory($category); } else { return $this->___callPlugins('setCurrentCategory', func_get_args(), $pluginInfo); } }
protected function setUp() { $this->_model = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()->create('Magento\\Catalog\\Model\\Layer\\Category'); $this->_model->setCurrentCategory(4); }