function it_does_not_add_violation_when_validates_boolean_product_value($context, Boolean $constraint, ProductValueInterface $productValue, AttributeInterface $attribute) { $productValue->getAttribute()->willReturn($attribute); $attribute->getCode()->willReturn('foo'); $attribute->getBackendType()->willReturn('boolean'); $productValue->getBoolean()->willReturn(true); $context->buildViolation(Argument::cetera())->shouldNotBeCalled(); $this->validate($productValue, $constraint); }