function it_does_not_build_violation_for_configured_multiselect_reference_data($registry, $context, Attribute $attribute, IsReferenceDataConfigured $constraint) { $attribute->getAttributeType()->willReturn('pim_reference_data_multiselect'); $attribute->getProperty('reference_data_name')->willReturn('foo'); $registry->has('foo')->willReturn(true); $registry->all()->shouldNotBeCalled(); $context->buildViolation(Argument::any())->shouldNotBeCalled(); $this->validate($attribute, $constraint); }
/** * {@inheritDoc} */ public function getAttributeType() { $this->__initializer__ && $this->__initializer__->__invoke($this, 'getAttributeType', array()); return parent::getAttributeType(); }