aboutsummaryrefslogtreecommitdiffstats
path: root/tests/console
diff options
context:
space:
mode:
authorrxu <rxu@mail.ru>2019-12-29 02:12:36 +0700
committerrxu <rxu@mail.ru>2019-12-29 12:59:24 +0700
commitdcab0762210a4059cca7458344dcc1aeb0360c42 (patch)
treefbae8ee0429f1c6ebb29cd8af8c5f3d1d7450ea4 /tests/console
parent82e61f501abfa2768d7faac1ccd8d688c84e5e13 (diff)
downloadforums-dcab0762210a4059cca7458344dcc1aeb0360c42.tar
forums-dcab0762210a4059cca7458344dcc1aeb0360c42.tar.gz
forums-dcab0762210a4059cca7458344dcc1aeb0360c42.tar.bz2
forums-dcab0762210a4059cca7458344dcc1aeb0360c42.tar.xz
forums-dcab0762210a4059cca7458344dcc1aeb0360c42.zip
[ticket/16276] Further fix PHP nightly tests
PHPBB3-16276
Diffstat (limited to 'tests/console')
-rw-r--r--tests/console/cron/run_test.php4
-rw-r--r--tests/console/user/base.php3
2 files changed, 6 insertions, 1 deletions
diff --git a/tests/console/cron/run_test.php b/tests/console/cron/run_test.php
index 2744bf132c..8402f9dd3e 100644
--- a/tests/console/cron/run_test.php
+++ b/tests/console/cron/run_test.php
@@ -122,6 +122,8 @@ class phpbb_console_command_cron_run_test extends phpbb_database_test_case
public function test_no_task()
{
+ global $phpbb_root_path, $phpEx;
+
$tasks = array(
);
@@ -163,6 +165,8 @@ class phpbb_console_command_cron_run_test extends phpbb_database_test_case
public function test_no_task_verbose()
{
+ global $phpbb_root_path, $phpEx;
+
$tasks = array(
);
diff --git a/tests/console/user/base.php b/tests/console/user/base.php
index b845ab1639..74f04cf686 100644
--- a/tests/console/user/base.php
+++ b/tests/console/user/base.php
@@ -112,7 +112,8 @@ abstract class phpbb_console_user_base extends phpbb_database_test_case
$row = $this->db->sql_fetchrow($result);
$this->db->sql_freeresult($result);
- return $row['user_id'];
+ $user_id = $row ? $row['user_id'] : null;
+ return $user_id;
}
public function getInputStream($input)