protected function ChainRouterTest::createRouterMocks

18 calls to ChainRouterTest::createRouterMocks()
ChainRouterTest::testContext in drupal/core/vendor/symfony-cmf/routing/Symfony/Cmf/Component/Routing/Tests/Routing/ChainRouterTest.php
context must be propagated to chained routers and be stored locally
ChainRouterTest::testContextOrder in drupal/core/vendor/symfony-cmf/routing/Symfony/Cmf/Component/Routing/Tests/Routing/ChainRouterTest.php
context must be propagated also when routers are added after context is set
ChainRouterTest::testGenerate in drupal/core/vendor/symfony-cmf/routing/Symfony/Cmf/Component/Routing/Tests/Routing/ChainRouterTest.php
ChainRouterTest::testGenerateNotFound in drupal/core/vendor/symfony-cmf/routing/Symfony/Cmf/Component/Routing/Tests/Routing/ChainRouterTest.php
@expectedException \Symfony\Component\Routing\Exception\RouteNotFoundException
ChainRouterTest::testMatch in drupal/core/vendor/symfony-cmf/routing/Symfony/Cmf/Component/Routing/Tests/Routing/ChainRouterTest.php
The first usable match is used, no further routers are queried once a match is found

... See full list

File

drupal/core/vendor/symfony-cmf/routing/Symfony/Cmf/Component/Routing/Tests/Routing/ChainRouterTest.php, line 602

Class

ChainRouterTest

Namespace

Symfony\Cmf\Component\Routing\Tests\Routing

Code

protected function createRouterMocks() {
  return array(
    $this
      ->getMock('Symfony\\Component\\Routing\\RouterInterface'),
    $this
      ->getMock('Symfony\\Component\\Routing\\RouterInterface'),
    $this
      ->getMock('Symfony\\Component\\Routing\\RouterInterface'),
  );
}