function let(ProductValue $value, MappingCollection $attributeMapping, AbstractAttribute $attribute) { $this->globalContext = ['identifier' => 'identifier', 'scopeCode' => 'scope_code', 'localeCode' => 'locale_code', 'onlyLocalized' => false, 'magentoAttributes' => ['attribute_code' => ['code' => 'attribute_ode', 'scope' => 'global']], 'magentoAttributesOptions' => [], 'currencyCode' => 'currency_code', 'attributeCodeMapping' => $attributeMapping]; $attributeMapping->getTarget('attribute_code')->willReturn('attribute_code'); $value->getData()->willReturn('hello'); $value->getAttribute()->willReturn($attribute); $value->getScope()->willReturn('scope_code'); $attribute->getCode()->willReturn('attribute_code'); }
/** * {@inheritDoc} */ public function getScope() { $this->__initializer__ && $this->__initializer__->__invoke($this, 'getScope', array()); return parent::getScope(); }