mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[ticket/11948] Check actual result of routes
PHPBB3-11948
This commit is contained in:
parent
51561ed538
commit
96317b2c45
1 changed files with 8 additions and 1 deletions
|
@ -37,7 +37,14 @@ class phpbb_controller_controller_test extends phpbb_test_case
|
||||||
->find(__DIR__);
|
->find(__DIR__);
|
||||||
|
|
||||||
// This will need to be updated if any new routes are defined
|
// This will need to be updated if any new routes are defined
|
||||||
$this->assertEquals(3, sizeof($routes));
|
$this->assertInstanceOf('Symfony\Component\Routing\Route', $routes->get('core_controller'));
|
||||||
|
$this->assertEquals('/core_foo', $routes->get('core_controller')->getPath());
|
||||||
|
|
||||||
|
$this->assertInstanceOf('Symfony\Component\Routing\Route', $routes->get('controller1'));
|
||||||
|
$this->assertEquals('/foo', $routes->get('controller1')->getPath());
|
||||||
|
|
||||||
|
$this->assertInstanceOf('Symfony\Component\Routing\Route', $routes->get('controller2'));
|
||||||
|
$this->assertEquals('/foo/bar', $routes->get('controller2')->getPath());
|
||||||
}
|
}
|
||||||
|
|
||||||
public function test_controller_resolver()
|
public function test_controller_resolver()
|
||||||
|
|
Loading…
Add table
Reference in a new issue