From 8098d313e6b56822b202ff3be8c12762dfc33bf7 Mon Sep 17 00:00:00 2001 From: brunoais Date: Wed, 17 Dec 2014 23:11:14 +0000 Subject: [ticket/13154] Adjusting phpBB tests for the dispatcher PHPBB3-13154 --- tests/notification/base.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests/notification/base.php') diff --git a/tests/notification/base.php b/tests/notification/base.php index c97b7c24e2..ee8c8e0f3b 100644 --- a/tests/notification/base.php +++ b/tests/notification/base.php @@ -66,6 +66,8 @@ abstract class phpbb_tests_notification_base extends phpbb_database_test_case $phpbb_root_path, $phpEx ); + + $phpbb_dispatcher = $this->phpbb_dispatcher = new phpbb_mock_event_dispatcher(); $phpbb_container = $this->container = new phpbb_mock_container_builder(); @@ -75,6 +77,7 @@ abstract class phpbb_tests_notification_base extends phpbb_database_test_case $this->container, $this->user_loader, $this->config, + $this->phpbb_dispatcher, $this->db, $this->cache, $this->user, -- cgit v1.2.1 From 2b76d7dc7c21d927398fdb5abe7b60875badc6ce Mon Sep 17 00:00:00 2001 From: brunoais Date: Sat, 10 Jan 2015 17:06:51 +0000 Subject: [ticket/13154] Don't assign dispatcher to a variable. Just the obj param. PHPBB3-13154 --- tests/notification/base.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/notification/base.php') diff --git a/tests/notification/base.php b/tests/notification/base.php index ee8c8e0f3b..162feae557 100644 --- a/tests/notification/base.php +++ b/tests/notification/base.php @@ -67,7 +67,7 @@ abstract class phpbb_tests_notification_base extends phpbb_database_test_case $phpEx ); - $phpbb_dispatcher = $this->phpbb_dispatcher = new phpbb_mock_event_dispatcher(); + $this->phpbb_dispatcher = new phpbb_mock_event_dispatcher(); $phpbb_container = $this->container = new phpbb_mock_container_builder(); -- cgit v1.2.1