mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 05:50:42 +02:00
[ticket/11334] Add a test for the controller helper URL method
PHPBB3-11334
This commit is contained in:
@@ -40,6 +40,12 @@ class phpbb_controller_test extends phpbb_test_case
|
||||
$this->assertEquals(2, sizeof($routes));
|
||||
}
|
||||
|
||||
public function test_controller_url_helper()
|
||||
{
|
||||
$helper = new phpbb_controller_helper;
|
||||
$this->assertEquals($helper->url('foo/bar'),'./app.php?controller=foo/bar');
|
||||
}
|
||||
|
||||
public function test_controller_resolver()
|
||||
{
|
||||
$container = new ContainerBuilder();
|
||||
|
Reference in New Issue
Block a user