Contao\CoreBundle\Test\Routing\FrontendLoaderTest::testContainerScope PHP Method

testContainerScope() public method

Tests that the dynamic routes have the correct scope.
public testContainerScope ( )
    public function testContainerScope()
    {
        $loader = new FrontendLoader(false);
        $collection = $loader->load('.', 'bundles');
        $this->assertEquals(ContaoCoreBundle::SCOPE_FRONTEND, $collection->get('contao_frontend')->getDefault('_scope'));
        $this->assertEquals(ContaoCoreBundle::SCOPE_FRONTEND, $collection->get('contao_index')->getDefault('_scope'));
    }