eZ\Bundle\EzPublishCoreBundle\Tests\DependencyInjection\Compiler\LegacyStorageEnginePassTest::testRegisterFieldType PHP Метод

testRegisterFieldType() публичный Метод

    public function testRegisterFieldType()
    {
        $def = new Definition();
        $fieldTypeIdentifier = 'fieldtype_identifier';
        $serviceId = 'some_service_id';
        $def->addTag('ezpublish.fieldType', array('alias' => $fieldTypeIdentifier));
        $this->setDefinition($serviceId, $def);
        $this->compile();
        $this->assertContainerBuilderHasServiceDefinitionWithMethodCall('ezpublish.api.storage_engine.legacy.factory', 'registerFieldType', array($serviceId, $fieldTypeIdentifier));
    }