Contao\CoreBundle\Test\Routing\FrontendLoaderTest::testController PHP Méthode

testController() public méthode

Tests that the dynamic routes are mapped to the correct controller.
public testController ( )
    public function testController()
    {
        $loader = new FrontendLoader(false);
        $collection = $loader->load('.', 'bundles');
        $this->assertEquals('ContaoCoreBundle:Frontend:index', $collection->get('contao_frontend')->getDefault('_controller'));
        $this->assertEquals('ContaoCoreBundle:Frontend:index', $collection->get('contao_index')->getDefault('_controller'));
    }