mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-02 14:57:37 +02:00
[ticket/11334] Make $phpbb_dispatcher global, as done in append_sid test
PHPBB3-11334
This commit is contained in:
@@ -42,6 +42,9 @@ class phpbb_controller_test extends phpbb_test_case
|
|||||||
|
|
||||||
public function test_controller_url_helper()
|
public function test_controller_url_helper()
|
||||||
{
|
{
|
||||||
|
global $phpbb_dispatcher;
|
||||||
|
|
||||||
|
$phpbb_dispatcher = new phpbb_mock_event_dispatcher;
|
||||||
$helper = new phpbb_controller_helper;
|
$helper = new phpbb_controller_helper;
|
||||||
$this->assertEquals($helper->url('foo/bar'),'./app.php?controller=foo/bar');
|
$this->assertEquals($helper->url('foo/bar'),'./app.php?controller=foo/bar');
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user