MDL-62232 mod_forum: Use setExpectedException()

This commit is contained in:
Jun Pataleta
2018-05-10 09:21:06 +08:00
parent 3ff27109ec
commit 6c0e979eda
+1 -1
View File
@@ -136,7 +136,7 @@ class mod_forum_portfolio_caller_testcase extends advanced_testcase {
'attachment' => $secondpostfile->get_id()
));
$this->expectExceptionMessage('Sorry, the requested file could not be found');
$this->setExpectedException('portfolio_caller_exception', 'Sorry, the requested file could not be found');
$caller->load_data();
}
}