PHP Class eZ\Bundle\EzPublishCoreBundle\Tests\Routing\DefaultRouterTest

Inheritance: extends PHPUnit_Framework_TestCase
Show file Open project: ezsystems/ezpublish-kernel

Protected Properties

Property Type Description
$configResolver PHPUnit_Framework_MockObject_MockObject | eZ\Publish\Core\MVC\ConfigResolverInterface
$container PHPUnit_Framework_MockObject_MockObject | Symfony\Component\DependencyInjection\ContainerInterface
$requestContext Symfony\Component\Routing\RequestContext

Public Methods

Method Description
providerGenerateNoSiteAccess ( )
providerGenerateWithSiteAccess ( )
testGenerateNoSiteAccess ( $url )
testGenerateReverseSiteAccessMatch ( )
testGenerateWithSiteAccess ( string $urlGenerated, string $relevantUri, string $expectedUrl, string $saName, boolean $isMatcherLexer, integer $referenceType, string $routeName )
testMatchRequestRegularPathinfo ( )
testMatchRequestWithSemanticPathinfo ( )

Protected Methods

Method Description
generateRouter ( array $mockedMethods = [] ) : PHPUnit_Framework_MockObject_MockObject | DefaultRouter
getRouterClass ( )
setUp ( )

Method Details

generateRouter() protected method

protected generateRouter ( array $mockedMethods = [] ) : PHPUnit_Framework_MockObject_MockObject | DefaultRouter
$mockedMethods array
return PHPUnit_Framework_MockObject_MockObject | eZ\Bundle\EzPublishCoreBundle\Routing\DefaultRouter

getRouterClass() protected method

protected getRouterClass ( )

providerGenerateNoSiteAccess() public method

providerGenerateWithSiteAccess() public method

setUp() protected method

protected setUp ( )

testGenerateNoSiteAccess() public method

public testGenerateNoSiteAccess ( $url )

testGenerateReverseSiteAccessMatch() public method

testGenerateWithSiteAccess() public method

public testGenerateWithSiteAccess ( string $urlGenerated, string $relevantUri, string $expectedUrl, string $saName, boolean $isMatcherLexer, integer $referenceType, string $routeName )
$urlGenerated string The URL generated by the standard UrLGenerator
$relevantUri string The relevant URI part of the generated URL (without host and basepath)
$expectedUrl string The URL we're expecting to be finally generated, with siteaccess
$saName string The SiteAccess name
$isMatcherLexer boolean True if the siteaccess matcher is URILexer
$referenceType integer The type of reference to be generated (one of the constants)
$routeName string

testMatchRequestRegularPathinfo() public method

testMatchRequestWithSemanticPathinfo() public method

Property Details

$configResolver protected property

protected PHPUnit_Framework_MockObject_MockObject|ConfigResolverInterface,eZ\Publish\Core\MVC $configResolver
return PHPUnit_Framework_MockObject_MockObject | eZ\Publish\Core\MVC\ConfigResolverInterface

$container protected property

protected PHPUnit_Framework_MockObject_MockObject|ContainerInterface,Symfony\Component\DependencyInjection $container
return PHPUnit_Framework_MockObject_MockObject | Symfony\Component\DependencyInjection\ContainerInterface

$requestContext protected property

protected RequestContext,Symfony\Component\Routing $requestContext
return Symfony\Component\Routing\RequestContext