mirror of
https://github.com/moodle/moodle.git
synced 2025-01-31 12:45:04 +01:00
MDL-72588 reportbuilder: fix expected exception message in tests.
See change to exception strings in 07b74820.
This commit is contained in:
parent
03eca63387
commit
31ba06b837
@ -99,7 +99,7 @@ class delete_testcase extends externallib_advanced_testcase {
|
||||
$this->setUser($user);
|
||||
|
||||
$this->expectException(report_access_exception::class);
|
||||
$this->expectExceptionMessage('You can not edit this report');
|
||||
$this->expectExceptionMessage('You cannot edit this report');
|
||||
delete::execute($report->get('id'), $audience1->get_persistent()->get('id'));
|
||||
}
|
||||
}
|
||||
|
@ -125,7 +125,7 @@ class permission_test extends advanced_testcase {
|
||||
|
||||
// User does not have view capability and belongs to an audience.
|
||||
$this->expectException(report_access_exception::class);
|
||||
$this->expectExceptionMessage('You can not view this report');
|
||||
$this->expectExceptionMessage('You cannot view this report');
|
||||
permission::require_can_view_report($report);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user