/** * {@inheritdoc} */ public function getProductsCount() { $pluginInfo = $this->pluginList->getNext($this->subjectType, 'getProductsCount'); if (!$pluginInfo) { return parent::getProductsCount(); } else { return $this->___callPlugins('getProductsCount', func_get_args(), $pluginInfo); } }
public function testGetProductsCount() { $this->assertEquals(10, $this->productsList->getProductsCount()); $this->productsList->setProductsCount(2); $this->assertEquals(2, $this->productsList->getProductsCount()); }