/** * {@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); } }
public function testGetAssociatedProducts() { $this->typeInstanceMock->expects($this->once())->method('getAssociatedProducts')->with($this->productMock)->will($this->returnValue('expected')); $this->assertEquals('expected', $this->groupedView->getAssociatedProducts()); }