PHP Class Contao\CoreBundle\Test\Routing\FrontendLoaderTest

Inheritance: extends PHPUnit_Framework_TestCase
Afficher le fichier Open project: contao/core-bundle

Méthodes publiques

Méthode 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

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

Method Details

testContainerScope() public méthode

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

testController() public méthode

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

testGenerateFrontendWithLocale() public méthode

Tests generating generating the "contao_frontend" route with locale.

testGenerateFrontendWithMissingAlias() public méthode

testGenerateFrontendWithMissingLocale() public méthode

Tests generating the "contao_frontend" route with missing locale.

testGenerateFrontendWithoutLocale() public méthode

Tests generating generating the "contao_frontend" route without locale.

testGenerateIndexWithLocale() public méthode

Tests generating the "contao_index" route with locale.

testGenerateIndexWithMissingLocale() public méthode

Tests generating the "contao_index" route with missing locale.

testGenerateIndexWithoutLocale() public méthode

Tests generating the "contao_index" route without locale.

testInstantiation() public méthode

Tests the object instantiation.
public testInstantiation ( )

testSupports() public méthode

Tests the supports() method.
public testSupports ( )