From 0448ce688f36cdbfdc5353d024239a1d348d83e5 Mon Sep 17 00:00:00 2001 From: Damien Regad Date: Tue, 11 Jun 2019 02:27:26 +0200 Subject: [PATCH] Fix testEmailLink for PHP 5.5 For an unknown reason, PHP 5.5 test fails when we don't specifically login. The problem does not occur with later versions. --- tests/Mantis/PrepareTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/Mantis/PrepareTest.php b/tests/Mantis/PrepareTest.php index 1accd040a0..7d72d97905 100644 --- a/tests/Mantis/PrepareTest.php +++ b/tests/Mantis/PrepareTest.php @@ -69,8 +69,9 @@ public function providerMailTo() { * @return void */ public function testEmailLink( $p_param, $p_access_level, $p_out ) { - # Make sure we have a DB connection + # Make sure we have a DB connection and a logged-in user $this->dbConnect(); + $this->login(); # Set threshold $t_config = 'show_user_email_threshold';