PHP Класс Contao\CoreBundle\Test\Routing\UrlGeneratorTest

Наследование: extends Contao\CoreBundle\Test\TestCase
Показать файл Открыть проект

Открытые методы

Метод Описание
testAutoItem ( ) Tests the auto_item support.
testAutoItemDisabled ( ) Tests the router with auto_item being disabled.
testContextNotModifiedIfHostnameIsSet ( ) Tests that the context is not modified if the hostname is set.
testIndex ( ) Tests that the index fragment is omitted.
testInstantiation ( ) Tests the object instantiation.
testRemovesLocale ( ) Tests that the locale is removed if prepend_locale is not set.
testReplaceParameters ( ) Tests the parameter replacement.
testRoute ( ) Tests the router.
testSetContext ( ) Tests the setContext() method.
testSetContextFromDomain ( ) Tests setting the context from a domain.
testThrowsExceptionOnMissingParameter ( ) Tests that an exception is thrown if a parameter is missing.
testWithNonArrayParameters ( ) Tests the generator with non-array parameters.
testWithoutParameters ( ) Tests the router without parameters.

Защищенные методы

Метод Описание
setUp ( )

Приватные методы

Метод Описание
getGenerator ( boolean $prependLocale = false, integer $returnArgument = 1, boolean $useAutoItem = true ) : UrlGenerator Returns an UrlGenerator object.

Описание методов

setUp() защищенный Метод

protected setUp ( )

testAutoItem() публичный Метод

Tests the auto_item support.
public testAutoItem ( )

testAutoItemDisabled() публичный Метод

Tests the router with auto_item being disabled.

testContextNotModifiedIfHostnameIsSet() публичный Метод

To tests this case, we omit the _ssl parameter and set the scheme to "https" in the context. If the generator still returns a HTTPS URL, we know that the context has not been modified.

testIndex() публичный Метод

Tests that the index fragment is omitted.
public testIndex ( )

testInstantiation() публичный Метод

Tests the object instantiation.
public testInstantiation ( )

testRemovesLocale() публичный Метод

Tests that the locale is removed if prepend_locale is not set.
public testRemovesLocale ( )

testReplaceParameters() публичный Метод

Tests the parameter replacement.

testRoute() публичный Метод

Tests the router.
public testRoute ( )

testSetContext() публичный Метод

Tests the setContext() method.
public testSetContext ( )

testSetContextFromDomain() публичный Метод

Tests setting the context from a domain.

testThrowsExceptionOnMissingParameter() публичный Метод

Tests that an exception is thrown if a parameter is missing.

testWithNonArrayParameters() публичный Метод

Tests the generator with non-array parameters.

testWithoutParameters() публичный Метод

Tests the router without parameters.