From 271ac6b57e6725fb1aba869c832beb482f85d61c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1t=C3=A9=20Bartus?= Date: Fri, 5 Aug 2016 23:03:35 +0200 Subject: [ticket/14542] Fix tests PHPBB3-14542 --- tests/console/cron/cron_list_test.php | 1 + tests/console/cron/run_test.php | 3 +++ tests/cron/manager_test.php | 1 + 3 files changed, 5 insertions(+) (limited to 'tests') diff --git a/tests/console/cron/cron_list_test.php b/tests/console/cron/cron_list_test.php index 99291ec215..d56d5b040f 100644 --- a/tests/console/cron/cron_list_test.php +++ b/tests/console/cron/cron_list_test.php @@ -90,6 +90,7 @@ class phpbb_console_command_cron_list_test extends phpbb_test_case ->willReturn('foobar'); $request = new \phpbb\request\request(); + $request->enable_super_globals(); $routing_helper = new \phpbb\routing\helper( $mock_config, diff --git a/tests/console/cron/run_test.php b/tests/console/cron/run_test.php index 8f5be00a80..c4dffa3686 100644 --- a/tests/console/cron/run_test.php +++ b/tests/console/cron/run_test.php @@ -66,6 +66,7 @@ class phpbb_console_command_cron_run_test extends phpbb_database_test_case ->willReturn('foobar'); $request = new \phpbb\request\request(); + $request->enable_super_globals(); $routing_helper = new \phpbb\routing\helper( $mock_config, @@ -139,6 +140,7 @@ class phpbb_console_command_cron_run_test extends phpbb_database_test_case ->willReturn('foobar'); $request = new \phpbb\request\request(); + $request->enable_super_globals(); $routing_helper = new \phpbb\routing\helper( $mock_config, @@ -179,6 +181,7 @@ class phpbb_console_command_cron_run_test extends phpbb_database_test_case ->willReturn('foobar'); $request = new \phpbb\request\request(); + $request->enable_super_globals(); $routing_helper = new \phpbb\routing\helper( $mock_config, diff --git a/tests/cron/manager_test.php b/tests/cron/manager_test.php index d204eb90d1..610f662b7d 100644 --- a/tests/cron/manager_test.php +++ b/tests/cron/manager_test.php @@ -90,6 +90,7 @@ class phpbb_cron_manager_test extends \phpbb_test_case ->willReturn('foobar'); $request = new \phpbb\request\request(); + $request->enable_super_globals(); $routing_helper = new \phpbb\routing\helper( $mock_config, -- cgit v1.2.1