MDL-62232 mod_forum: PHPUnit 5.5 needs expectException()
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user