Esempio n. 1
0
 /**
  * {@inheritdoc}
  */
 public function getImage($product, $imageId, $attributes = array())
 {
     $pluginInfo = $this->pluginList->getNext($this->subjectType, 'getImage');
     if (!$pluginInfo) {
         return parent::getImage($product, $imageId, $attributes);
     } else {
         return $this->___callPlugins('getImage', func_get_args(), $pluginInfo);
     }
 }
Esempio n. 2
0
 public function testGetJs()
 {
     $expected = uniqid();
     $this->_layout->getBlock('child')->setJs($expected);
     $this->assertEquals($expected, $this->_block->getJs());
 }