eZ\Publish\Core\Base\Tests\Container\Compiler\FieldTypeCollectionPassTest::testRegisterFieldType PHP Method

testRegisterFieldType() public method

    public function testRegisterFieldType()
    {
        $fieldTypeIdentifier = 'field_type_identifier';
        $serviceId = 'service_id';
        $def = new Definition();
        $def->addTag('ezpublish.fieldType', array('alias' => $fieldTypeIdentifier));
        $this->setDefinition($serviceId, $def);
        $this->compile();
        $this->assertContainerBuilderHasServiceDefinitionWithMethodCall('ezpublish.field_type_collection.factory', 'registerFieldType', array($serviceId, $fieldTypeIdentifier));
    }