Ejemplo n.º 1
0
 /**
  * {@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);
     }
 }
Ejemplo n.º 2
0
 public function testGetProductsCount()
 {
     $this->assertEquals(10, $this->productsList->getProductsCount());
     $this->productsList->setProductsCount(2);
     $this->assertEquals(2, $this->productsList->getProductsCount());
 }