MDL-63547 core_message: deprecated api::delete_conversation()

This commit is contained in:
Mark Nelson 2018-10-14 14:03:03 +08:00
parent 08cb8a34f9
commit 263ad98436
5 changed files with 78 additions and 4 deletions

View file

@ -364,6 +364,7 @@ class core_message_events_testcase extends core_message_messagelib_testcase {
// Trigger and capture the event.
$sink = $this->redirectEvents();
\core_message\api::delete_conversation($user1->id, $user2->id);
$this->assertDebuggingCalled();
$events = $sink->get_events();
// Get the user actions for the messages deleted by that user.