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(); }