eZ\Publish\Core\Base\Tests\Container\Compiler\Search\Legacy\CriterionFieldValueHandlerRegistryPassTest::testRegisterValueHandlerNoAlias PHP Method

testRegisterValueHandlerNoAlias() public method

    public function testRegisterValueHandlerNoAlias()
    {
        $fieldTypeIdentifier = 'field_type_identifier';
        $serviceId = 'service_id';
        $def = new Definition();
        $def->addTag('ezpublish.search.legacy.gateway.criterion_field_value_handler');
        $this->setDefinition($serviceId, $def);
        $this->compile();
        $this->assertContainerBuilderHasServiceDefinitionWithMethodCall('ezpublish.search.legacy.gateway.criterion_field_value_handler.registry', 'register', array($fieldTypeIdentifier, new Reference($serviceId)));
    }