MDL-82287 core: Deprecate long-deprecated functions

These were originally believed to be so widely used that we could never
migrate away from them but it seems we have!
This commit is contained in:
Andrew Nicols 2024-06-25 21:21:00 +08:00
parent 4101dc6dab
commit 77f9238cf4
No known key found for this signature in database
GPG key ID: 6D1E3157C8CFBF14
9 changed files with 159 additions and 395 deletions

View file

@ -115,26 +115,6 @@ class messagelib_test extends \advanced_testcase {
return $DB->insert_record('messages', $record);
}
/**
* Test message_get_blocked_users throws an exception because has been removed.
*/
public function test_message_get_blocked_users(): void {
$this->expectException('coding_exception');
$this->expectExceptionMessage(
'message_get_blocked_users() has been removed, please use \core_message\api::get_blocked_users() instead.'
);
message_get_blocked_users();
}
/**
* Test message_get_contacts throws an exception because has been removed.
*/
public function test_message_get_contacts(): void {
$this->expectException('coding_exception');
$this->expectExceptionMessage('message_get_contacts() has been removed.');
message_get_contacts();
}
/**
* Test message_search_users.
*/