eZ\Bundle\EzPublishCoreBundle\Tests\DependencyInjection\Compiler\BlockViewPassTest::testAddViewProvider PHP Method

testAddViewProvider() public method

public testAddViewProvider ( )
    public function testAddViewProvider()
    {
        $def = new Definition();
        $def->addTag(BlockViewPass::VIEW_PROVIDER_IDENTIFIER, array('priority' => 12));
        $serviceId = 'service_id';
        $this->setDefinition($serviceId, $def);
        $this->compile();
        $this->assertContainerBuilderHasServiceDefinitionWithTag($serviceId, 'ezpublish.view_provider', ['priority' => 12, 'type' => BlockViewPass::VIEW_TYPE]);
    }