eZ\Publish\Core\Base\Tests\Container\Compiler\Search\Legacy\SortClauseConverterPassTest::testAddLocationHandlers PHP Method

testAddLocationHandlers() public method

    public function testAddLocationHandlers()
    {
        $this->setDefinition('ezpublish.search.legacy.gateway.sort_clause_converter.location', new Definition());
        $serviceId = 'service_id';
        $def = new Definition();
        $def->addTag('ezpublish.search.legacy.gateway.sort_clause_handler.location');
        $this->setDefinition($serviceId, $def);
        $this->compile();
        $this->assertContainerBuilderHasServiceDefinitionWithMethodCall('ezpublish.search.legacy.gateway.sort_clause_converter.location', 'addHandler', array(new Reference($serviceId)));
    }