[ticket/11334] Make $phpbb_dispatcher global, as done in append_sid test

PHPBB3-11334
This commit is contained in:
David King 2013-02-16 19:18:16 -05:00
parent 5e89ce1898
commit 48aefb13b0

View file

@ -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');
} }