MDL-72588 reportbuilder: fix expected exception message in tests.

See change to exception strings in 07b74820.
This commit is contained in:
Paul Holden 2021-11-01 11:21:07 +00:00
parent 03eca63387
commit 31ba06b837
2 changed files with 2 additions and 2 deletions

View File

@ -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'));
}
}

View File

@ -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);
}