public function testGetProductParent() { $this->typeInstance->expects($this->once())->method('getStoreFilter')->with($this->product)->willReturn(true); $this->product->expects($this->once())->method('getTypeInstance')->willReturn($this->typeInstance); $this->configurable->setData('product', $this->product); $this->assertEquals($this->product, $this->configurable->getProduct()); }
/** * {@inheritdoc} */ public function setData($key, $value = null) { $pluginInfo = $this->pluginList->getNext($this->subjectType, 'setData'); if (!$pluginInfo) { return parent::setData($key, $value); } else { return $this->___callPlugins('setData', func_get_args(), $pluginInfo); } }