mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 05:58:34 +01:00
Merge branch 'MDL-63883-master' of https://github.com/snake/moodle
This commit is contained in:
commit
3c577cb583
@ -3022,14 +3022,11 @@ class core_message_externallib_testcase extends externallib_advanced_testcase {
|
||||
$this->assertContains($user1->id, $membersid);
|
||||
$this->assertContains($user2->id, $membersid);
|
||||
$this->assertContains($user3->id, $membersid);
|
||||
$this->assertNotContains($user4->id, $membersid);
|
||||
$this->assertNotContains($user5->id, $membersid);
|
||||
|
||||
$membersfullnames = [$members[0]['fullname'], $members[1]['fullname'], $members[2]['fullname']];
|
||||
$this->assertContains(fullname($user1), $membersfullnames);
|
||||
$this->assertContains(fullname($user2), $membersfullnames);
|
||||
$this->assertContains(fullname($user3), $membersfullnames);
|
||||
$this->assertNotContains(fullname($user4), $membersfullnames);
|
||||
$this->assertNotContains(fullname($user5), $membersfullnames);
|
||||
|
||||
// Confirm the messages data is correct.
|
||||
$messages = $result['messages'];
|
||||
@ -3154,7 +3151,6 @@ class core_message_externallib_testcase extends externallib_advanced_testcase {
|
||||
$this->assertContains($user1->id, $membersid);
|
||||
$this->assertContains($user2->id, $membersid);
|
||||
$this->assertContains($user3->id, $membersid);
|
||||
$this->assertNotContains($user4->id, $membersid);
|
||||
|
||||
// Confirm the message data is correct.
|
||||
$messages = $result['messages'];
|
||||
|
Loading…
x
Reference in New Issue
Block a user