eZ\Publish\Core\Base\Tests\Container\Compiler\Search\FieldTypeRegistryPassTest::testRegisterFieldType PHP Метод

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

    public function testRegisterFieldType()
    {
        $fieldTypeIdentifier = 'field_type_identifier';
        $serviceId = 'service_id';
        $def = new Definition();
        $def->addTag('ezpublish.fieldType.indexable', array('alias' => $fieldTypeIdentifier));
        $this->setDefinition($serviceId, $def);
        $this->compile();
        $this->assertContainerBuilderHasServiceDefinitionWithMethodCall('ezpublish.search.common.field_registry', 'registerType', array($fieldTypeIdentifier, new Reference($serviceId)));
    }