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