PHP Class eZ\Publish\Core\MVC\Symfony\Routing\Tests\UrlAliasRouterTest

Inheritance: extends PHPUnit_Framework_TestCas\PHPUnit_Framework_TestCase
Afficher le fichier Open project: ezsystems/ezpublish-kernel Class Usage Examples

Protected Properties

Свойство Type Description
$contentService PHPUnit_Framework_MockObject_MockObject
$locationService PHPUnit_Framework_MockObject_MockObject
$repository PHPUnit_Framework_MockObject_MockObject
$requestContext
$router eZ\Publish\Core\MVC\Symfony\Routing\UrlAliasRouter
$urlALiasGenerator PHPUnit_Framework_MockObject_MockObject
$urlAliasService PHPUnit_Framework_MockObject_MockObject

Méthodes publiques

Méthode Description
providerTestSupports ( )
testGenerateFail ( )
testGenerateInvalidLocation ( )
testGenerateNoLocation ( )
testGenerateWithContentId ( )
testGenerateWithContentIdWithMissingMainLocation ( )
testGenerateWithLocation ( )
testGenerateWithLocationAsParameter ( )
testGenerateWithLocationId ( )
testGetRouteCollection ( )
testMatch ( )
testMatchRequestFail ( )
testMatchRequestLocation ( )
testMatchRequestLocationCorrectCaseUriPrefixExcluded ( )
testMatchRequestLocationCustom ( )
testMatchRequestLocationCustomForward ( )
testMatchRequestLocationHistory ( )
testMatchRequestLocationWithCaseRedirect ( )
testMatchRequestLocationWrongCaseUriPrefixExcluded ( )
testMatchRequestResource ( )
testMatchRequestResourceCaseIncorrectWithForwardRedirect ( ) Tests that forwarding custom alias will redirect to the resource destination rather than to the case-corrected alias.
testMatchRequestResourceWithCaseRedirect ( )
testMatchRequestResourceWithRedirect ( )
testMatchRequestVirtual ( )
testMatchRequestVirtualWithCaseRedirect ( )
testRequestContext ( )
testSupports ( $routeReference, $isSupported )

Méthodes protégées

Méthode Description
getRequestByPathInfo ( $pathInfo ) : Request
getRouter ( eZ\Publish\API\Repository\LocationService $locationService, eZ\Publish\API\Repository\URLAliasService $urlAliasService, eZ\Publish\API\Repository\ContentService $contentService, UrlAliasGenerator $urlAliasGenerator, Symfony\Component\Routing\RequestContext $requestContext ) : UrlAliasRouter
setUp ( )

Method Details

getRequestByPathInfo() protected méthode

protected getRequestByPathInfo ( $pathInfo ) : Request
$pathInfo
Résultat Symfony\Component\HttpFoundation\Request

getRouter() protected méthode

protected getRouter ( eZ\Publish\API\Repository\LocationService $locationService, eZ\Publish\API\Repository\URLAliasService $urlAliasService, eZ\Publish\API\Repository\ContentService $contentService, UrlAliasGenerator $urlAliasGenerator, Symfony\Component\Routing\RequestContext $requestContext ) : UrlAliasRouter
$locationService eZ\Publish\API\Repository\LocationService
$urlAliasService eZ\Publish\API\Repository\URLAliasService
$contentService eZ\Publish\API\Repository\ContentService
$urlAliasGenerator eZ\Publish\Core\MVC\Symfony\Routing\Generator\UrlAliasGenerator
$requestContext Symfony\Component\Routing\RequestContext
Résultat eZ\Publish\Core\MVC\Symfony\Routing\UrlAliasRouter

providerTestSupports() public méthode

setUp() protected méthode

protected setUp ( )

testGenerateFail() public méthode

public testGenerateFail ( )

testGenerateInvalidLocation() public méthode

testGenerateNoLocation() public méthode

testGenerateWithContentId() public méthode

testGenerateWithContentIdWithMissingMainLocation() public méthode

testGenerateWithLocation() public méthode

testGenerateWithLocationAsParameter() public méthode

testGenerateWithLocationId() public méthode

testGetRouteCollection() public méthode

testMatch() public méthode

public testMatch ( )

testMatchRequestFail() public méthode

testMatchRequestLocation() public méthode

testMatchRequestLocationCorrectCaseUriPrefixExcluded() public méthode

testMatchRequestLocationCustom() public méthode

testMatchRequestLocationCustomForward() public méthode

testMatchRequestLocationHistory() public méthode

testMatchRequestLocationWithCaseRedirect() public méthode

testMatchRequestLocationWrongCaseUriPrefixExcluded() public méthode

testMatchRequestResource() public méthode

testMatchRequestResourceCaseIncorrectWithForwardRedirect() public méthode

Tests that forwarding custom alias will redirect to the resource destination rather than to the case-corrected alias.

testMatchRequestResourceWithCaseRedirect() public méthode

testMatchRequestResourceWithRedirect() public méthode

testMatchRequestVirtual() public méthode

testMatchRequestVirtualWithCaseRedirect() public méthode

testRequestContext() public méthode

public testRequestContext ( )

testSupports() public méthode

public testSupports ( $routeReference, $isSupported )

Property Details

$contentService protected_oe property

protected PHPUnit_Framework_MockObject_MockObject $contentService
Résultat PHPUnit_Framework_MockObject_MockObject

$locationService protected_oe property

protected PHPUnit_Framework_MockObject_MockObject $locationService
Résultat PHPUnit_Framework_MockObject_MockObject

$repository protected_oe property

protected PHPUnit_Framework_MockObject_MockObject $repository
Résultat PHPUnit_Framework_MockObject_MockObject

$requestContext protected_oe property

protected $requestContext

$router protected_oe property

protected UrlAliasRouter,eZ\Publish\Core\MVC\Symfony\Routing $router
Résultat eZ\Publish\Core\MVC\Symfony\Routing\UrlAliasRouter

$urlALiasGenerator protected_oe property

protected PHPUnit_Framework_MockObject_MockObject $urlALiasGenerator
Résultat PHPUnit_Framework_MockObject_MockObject

$urlAliasService protected_oe property

protected PHPUnit_Framework_MockObject_MockObject $urlAliasService
Résultat PHPUnit_Framework_MockObject_MockObject