mirror of
https://github.com/moodle/moodle.git
synced 2025-08-07 18:06:51 +02:00
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:
parent
4101dc6dab
commit
77f9238cf4
9 changed files with 159 additions and 395 deletions
|
@ -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.
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue