MDL-62232 mod_forum: PHPUnit 5.5 needs expectException()

This commit is contained in:
Jun Pataleta
2018-05-10 09:19:43 +08:00
parent aa208d1bc2
commit 4458f71ab0
@@ -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();
}