Example #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);
     }
 }
Example #2
0
 public function testGetProductsCount()
 {
     $this->assertEquals(10, $this->block->getProductsCount());
     $this->block->setProductsCount(2);
     $this->assertEquals(2, $this->block->getProductsCount());
 }