From 4458f71ab0d0bcaebf4bfb855cf39935bffd0659 Mon Sep 17 00:00:00 2001 From: Jun Pataleta Date: Wed, 9 May 2018 16:55:20 +0800 Subject: [PATCH] MDL-62232 mod_forum: PHPUnit 5.5 needs expectException() --- mod/forum/tests/portfolio_caller_test.php | 1 + 1 file changed, 1 insertion(+) diff --git a/mod/forum/tests/portfolio_caller_test.php b/mod/forum/tests/portfolio_caller_test.php index 572068e64da..fab32c1b90e 100644 --- a/mod/forum/tests/portfolio_caller_test.php +++ b/mod/forum/tests/portfolio_caller_test.php @@ -136,6 +136,7 @@ class mod_forum_portfolio_caller_testcase extends advanced_testcase { 'attachment' => $secondpostfile->get_id() )); + $this->expectException(portfolio_caller_exception::class); $this->expectExceptionMessage('Sorry, the requested file could not be found'); $caller->load_data(); }