public function testSetPreconfiguredValueIfSuperGroupNotExist() { $this->productMock->expects($this->once())->method('getPreconfiguredValues')->will($this->returnValue($this->configuredValueMock)); $this->configuredValueMock->expects($this->once())->method('getSuperGroup')->will($this->returnValue(false)); $this->typeInstanceMock->expects($this->never())->method('getAssociatedProducts'); $this->groupedView->setPreconfiguredValue(); }
/** * {@inheritdoc} */ public function setPreconfiguredValue() { $pluginInfo = $this->pluginList->getNext($this->subjectType, 'setPreconfiguredValue'); if (!$pluginInfo) { return parent::setPreconfiguredValue(); } else { return $this->___callPlugins('setPreconfiguredValue', func_get_args(), $pluginInfo); } }