function its_value_is_mutable_based_on_attribute_storage_type(AttributeInterface $attribute)
 {
     $attribute->getStorageType()->willReturn('text');
     $this->setAttribute($attribute);
     $this->setValue('XXL');
     $this->getValue()->shouldReturn('XXL');
 }
Example #2
0
 function it_returns_its_value_when_converted_to_string(AttributeInterface $attribute)
 {
     $attribute->getStorageType()->willReturn('text');
     $this->setAttribute($attribute);
     $this->setValue('S');
     $this->__toString()->shouldReturn('S');
 }