mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
[ticket/11334] Make $phpbb_dispatcher global, as done in append_sid test
PHPBB3-11334
This commit is contained in:
parent
5e89ce1898
commit
48aefb13b0
1 changed files with 3 additions and 0 deletions
|
@ -42,6 +42,9 @@ class phpbb_controller_test extends phpbb_test_case
|
|||
|
||||
public function test_controller_url_helper()
|
||||
{
|
||||
global $phpbb_dispatcher;
|
||||
|
||||
$phpbb_dispatcher = new phpbb_mock_event_dispatcher;
|
||||
$helper = new phpbb_controller_helper;
|
||||
$this->assertEquals($helper->url('foo/bar'),'./app.php?controller=foo/bar');
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue