MDL-58563 group: Specify table alias in sort parameter for group test

This commit is contained in:
Jun Pataleta 2017-04-11 12:40:41 +08:00
parent bd99cb9021
commit d3679c37af

View File

@ -1443,7 +1443,7 @@ class core_grouplib_testcase extends advanced_testcase {
$this->assertCount(0, $members); $this->assertCount(0, $members);
// Test groups_get_members. // Test groups_get_members.
$members = groups_get_members($group2->id, 'u.*', 'id ASC'); $members = groups_get_members($group2->id, 'u.*', 'u.id ASC');
$this->assertCount(2, $members); $this->assertCount(2, $members);
$this->assertEquals([$user1->id, $user2->id], array_keys($members)); $this->assertEquals([$user1->id, $user2->id], array_keys($members));
} }