Ejemplo n.º 1
0
 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();
 }
Ejemplo n.º 2
0
 /**
  * {@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);
     }
 }