function let(ProductValueNormalizer $productValueNormalizer, Attribute $attribute, MappingCollection $attributeMapping, MappingCollection $storeViewMapping) { $this->beConstructedWith($productValueNormalizer); $attribute->isUnique()->willReturn(true); $attribute->isRequired()->willReturn(false); $attribute->isLocalizable()->willReturn(true); $attributeMapping->getTarget('attribute_code')->willReturn('attribute_code_mapped'); $attributeMapping->getTarget('Attribute_code')->willReturn('Attribute_code_mapped'); $attributeMapping->getTarget('2ttribute_code')->willReturn('2ttribute_code'); $attributeMapping->getTarget('attributeCode')->willReturn('attributeCode'); $this->baseContext['attributeCodeMapping'] = $attributeMapping; $this->baseContext['storeViewMapping'] = $storeViewMapping; }
/** * {@inheritDoc} */ public function isUnique() { $this->__initializer__ && $this->__initializer__->__invoke($this, 'isUnique', array()); return parent::isUnique(); }