public function testConstructorAndGettersWithBoolean() { $helper = new \Magento\TestFramework\Helper\ObjectManager($this); $attributeBuilder = $helper->getObject('Magento\\Framework\\Api\\AttributeDataBuilder')->setAttributeCode(self::ATTRIBUTE_CODE)->setValue(self::BOOLEAN_VALUE); $attribute = new AttributeValue($attributeBuilder); $this->assertSame(self::ATTRIBUTE_CODE, $attribute->getAttributeCode()); $this->assertSame(self::BOOLEAN_VALUE, $attribute->getValue()); }
public function testConstructorAndGettersWithBoolean() { $attribute = new AttributeValue([AttributeValue::ATTRIBUTE_CODE => self::ATTRIBUTE_CODE, AttributeValue::VALUE => self::BOOLEAN_VALUE]); $this->assertSame(self::ATTRIBUTE_CODE, $attribute->getAttributeCode()); $this->assertSame(self::BOOLEAN_VALUE, $attribute->getValue()); }