aboutsummaryrefslogtreecommitdiffstats
path: root/tests/controller/controller_test.php
diff options
context:
space:
mode:
authorDavid King <imkingdavid@gmail.com>2013-02-16 19:18:16 -0500
committerDavid King <imkingdavid@gmail.com>2013-03-15 09:18:09 -0400
commit48aefb13b0f66dd84f5e7a2f18ca485fabe4833b (patch)
treec3a6d3fea67f4cd7e2e0a8f0a7a86bbb5c722181 /tests/controller/controller_test.php
parent5e89ce1898857f29e5345adf31d62bbed1fb985b (diff)
downloadforums-48aefb13b0f66dd84f5e7a2f18ca485fabe4833b.tar
forums-48aefb13b0f66dd84f5e7a2f18ca485fabe4833b.tar.gz
forums-48aefb13b0f66dd84f5e7a2f18ca485fabe4833b.tar.bz2
forums-48aefb13b0f66dd84f5e7a2f18ca485fabe4833b.tar.xz
forums-48aefb13b0f66dd84f5e7a2f18ca485fabe4833b.zip
[ticket/11334] Make $phpbb_dispatcher global, as done in append_sid test
PHPBB3-11334
Diffstat (limited to 'tests/controller/controller_test.php')
-rw-r--r--tests/controller/controller_test.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/controller/controller_test.php b/tests/controller/controller_test.php
index 97f6d6152a..c4818dbd6a 100644
--- a/tests/controller/controller_test.php
+++ b/tests/controller/controller_test.php
@@ -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');
}