コード例 #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();
 }
コード例 #2
0
 /**
  * {@inheritdoc}
  */
 public function getImage($product, $imageId, $attributes = array())
 {
     $pluginInfo = $this->pluginList->getNext($this->subjectType, 'getImage');
     if (!$pluginInfo) {
         return parent::getImage($product, $imageId, $attributes);
     } else {
         return $this->___callPlugins('getImage', func_get_args(), $pluginInfo);
     }
 }
コード例 #3
0
ファイル: Grouped.php プロジェクト: pradeep-wagento/magento2
 /**
  * Redefine default price block
  * Set current customer to tax calculation
  *
  * @return void
  */
 protected function _construct()
 {
     parent::_construct();
     $this->_useLinkForAsLowAs = false;
 }
コード例 #4
0
 /**
  * {@inheritdoc}
  */
 public function offsetGet($offset)
 {
     $pluginInfo = $this->pluginList->getNext($this->subjectType, 'offsetGet');
     if (!$pluginInfo) {
         return parent::offsetGet($offset);
     } else {
         return $this->___callPlugins('offsetGet', func_get_args(), $pluginInfo);
     }
 }
コード例 #5
0
ファイル: Grouped.php プロジェクト: Atlis/docker-magento2
 /**
  * Redefine default price block
  * Set current customer to tax calculation
  *
  * @return void
  */
 protected function _construct()
 {
     parent::_construct();
     $this->_block = 'Magento\\Catalog\\Block\\Adminhtml\\Product\\Price';
     $this->_useLinkForAsLowAs = false;
 }