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

Inheritance: extends PHPUnit_Framework_TestCas\PHPUnit_Framework_TestCase
Datei anzeigen Open project: ezsystems/ezpublish-kernel Class Usage Examples

Protected Properties

Property 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

Public Methods

Method 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 )

Protected Methods

Method 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 method

protected getRequestByPathInfo ( $pathInfo ) : Request
$pathInfo
return Symfony\Component\HttpFoundation\Request

getRouter() protected method

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
return eZ\Publish\Core\MVC\Symfony\Routing\UrlAliasRouter

providerTestSupports() public method

setUp() protected method

protected setUp ( )

testGenerateFail() public method

public testGenerateFail ( )

testGenerateInvalidLocation() public method

testGenerateNoLocation() public method

testGenerateWithContentId() public method

testGenerateWithContentIdWithMissingMainLocation() public method

testGenerateWithLocation() public method

testGenerateWithLocationAsParameter() public method

testGenerateWithLocationId() public method

testGetRouteCollection() public method

testMatch() public method

public testMatch ( )

testMatchRequestFail() public method

testMatchRequestLocation() public method

testMatchRequestLocationCorrectCaseUriPrefixExcluded() public method

testMatchRequestLocationCustom() public method

testMatchRequestLocationCustomForward() public method

testMatchRequestLocationHistory() public method

testMatchRequestLocationWithCaseRedirect() public method

testMatchRequestLocationWrongCaseUriPrefixExcluded() public method

testMatchRequestResource() public method

testMatchRequestResourceCaseIncorrectWithForwardRedirect() public method

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

testMatchRequestResourceWithCaseRedirect() public method

testMatchRequestResourceWithRedirect() public method

testMatchRequestVirtual() public method

testMatchRequestVirtualWithCaseRedirect() public method

testRequestContext() public method

public testRequestContext ( )

testSupports() public method

public testSupports ( $routeReference, $isSupported )

Property Details

$contentService protected_oe property

protected PHPUnit_Framework_MockObject_MockObject $contentService
return PHPUnit_Framework_MockObject_MockObject

$locationService protected_oe property

protected PHPUnit_Framework_MockObject_MockObject $locationService
return PHPUnit_Framework_MockObject_MockObject

$repository protected_oe property

protected PHPUnit_Framework_MockObject_MockObject $repository
return PHPUnit_Framework_MockObject_MockObject

$requestContext protected_oe property

protected $requestContext

$router protected_oe property

protected UrlAliasRouter,eZ\Publish\Core\MVC\Symfony\Routing $router
return eZ\Publish\Core\MVC\Symfony\Routing\UrlAliasRouter

$urlALiasGenerator protected_oe property

protected PHPUnit_Framework_MockObject_MockObject $urlALiasGenerator
return PHPUnit_Framework_MockObject_MockObject

$urlAliasService protected_oe property

protected PHPUnit_Framework_MockObject_MockObject $urlAliasService
return PHPUnit_Framework_MockObject_MockObject