/** * {@inheritdoc} */ public function getProductsPerPage() { $pluginInfo = $this->pluginList->getNext($this->subjectType, 'getProductsPerPage'); if (!$pluginInfo) { return parent::getProductsPerPage(); } else { return $this->___callPlugins('getProductsPerPage', func_get_args(), $pluginInfo); } }
public function testGetDefaultProductsPerPage() { $this->assertEquals(ProductsList::DEFAULT_PRODUCTS_PER_PAGE, $this->productsList->getProductsPerPage()); }