function it_creates_an_attribute_with_type($registry, AbstractAttributeType $attributeType) { $attributeType->getBackendType()->willReturn('backend_type'); $attributeType->getName()->willReturn('name_type'); $registry->get('pim_catalogue_text')->willReturn($attributeType); $this->createAttribute('pim_catalogue_text')->shouldReturnAnInstanceOf(self::ATTRIBUTE_CLASS); }