Example #1
0
 public function testGetAllowProducts()
 {
     $products = $this->_block->getAllowProducts();
     $this->assertGreaterThanOrEqual(2, count($products));
     foreach ($products as $product) {
         $this->assertInstanceOf('Magento\\Catalog\\Model\\Product', $product);
     }
 }
 /**
  * {@inheritdoc}
  */
 public function getAllowProducts()
 {
     $pluginInfo = $this->pluginList->getNext($this->subjectType, 'getAllowProducts');
     if (!$pluginInfo) {
         return parent::getAllowProducts();
     } else {
         return $this->___callPlugins('getAllowProducts', func_get_args(), $pluginInfo);
     }
 }