Пример #1
0
 /**
  * {@inheritdoc}
  */
 public function getAssociatedProducts()
 {
     $pluginInfo = $this->pluginList->getNext($this->subjectType, 'getAssociatedProducts');
     if (!$pluginInfo) {
         return parent::getAssociatedProducts();
     } else {
         return $this->___callPlugins('getAssociatedProducts', func_get_args(), $pluginInfo);
     }
 }
Пример #2
0
 public function testGetAssociatedProducts()
 {
     $this->typeInstanceMock->expects($this->once())->method('getAssociatedProducts')->with($this->productMock)->will($this->returnValue('expected'));
     $this->assertEquals('expected', $this->groupedView->getAssociatedProducts());
 }