eZ\Bundle\EzPublishCoreBundle\Tests\DependencyInjection\Compiler\FieldTypeParameterProviderRegistryPassTest::testRegisterFieldTypeNoAlias PHP Method

testRegisterFieldTypeNoAlias() public method

    public function testRegisterFieldTypeNoAlias()
    {
        $fieldTypeIdentifier = 'field_type_identifier';
        $serviceId = 'service_id';
        $def = new Definition();
        $def->addTag('ezpublish.fieldType.parameterProvider');
        $this->setDefinition($serviceId, $def);
        $this->compile();
        $this->assertContainerBuilderHasServiceDefinitionWithMethodCall('ezpublish.fieldType.parameterProviderRegistry', 'setParameterProvider', array(new Reference($serviceId), $fieldTypeIdentifier));
    }