PHP Class Contao\CoreBundle\Test\Routing\FrontendLoaderTest

Inheritance: extends PHPUnit_Framework_TestCase
Datei anzeigen Open project: contao/core-bundle

Public Methods

Method Description
testContainerScope ( ) Tests that the dynamic routes have the correct scope.
testController ( ) Tests that the dynamic routes are mapped to the correct controller.
testGenerateFrontendWithLocale ( ) Tests generating generating the "contao_frontend" route with locale.
testGenerateFrontendWithMissingAlias ( )
testGenerateFrontendWithMissingLocale ( ) Tests generating the "contao_frontend" route with missing locale.
testGenerateFrontendWithoutLocale ( ) Tests generating generating the "contao_frontend" route without locale.
testGenerateIndexWithLocale ( ) Tests generating the "contao_index" route with locale.
testGenerateIndexWithMissingLocale ( ) Tests generating the "contao_index" route with missing locale.
testGenerateIndexWithoutLocale ( ) Tests generating the "contao_index" route without locale.
testInstantiation ( ) Tests the object instantiation.
testSupports ( ) Tests the supports() method.

Private Methods

Method Description
getRouter ( RouteCollection $collection, string $urlSuffix = '.html' ) : Router Generates a router using the given RouteCollection.

Method Details

testContainerScope() public method

Tests that the dynamic routes have the correct scope.
public testContainerScope ( )

testController() public method

Tests that the dynamic routes are mapped to the correct controller.
public testController ( )

testGenerateFrontendWithLocale() public method

Tests generating generating the "contao_frontend" route with locale.

testGenerateFrontendWithMissingAlias() public method

testGenerateFrontendWithMissingLocale() public method

Tests generating the "contao_frontend" route with missing locale.

testGenerateFrontendWithoutLocale() public method

Tests generating generating the "contao_frontend" route without locale.

testGenerateIndexWithLocale() public method

Tests generating the "contao_index" route with locale.

testGenerateIndexWithMissingLocale() public method

Tests generating the "contao_index" route with missing locale.

testGenerateIndexWithoutLocale() public method

Tests generating the "contao_index" route without locale.

testInstantiation() public method

Tests the object instantiation.
public testInstantiation ( )

testSupports() public method

Tests the supports() method.
public testSupports ( )