MDL-55423 tests: remove non-cross-db testcase
authorDan Poltawski <dan@moodle.com>
Tue, 23 Aug 2016 11:36:28 +0000 (12:36 +0100)
committerDan Poltawski <dan@moodle.com>
Tue, 23 Aug 2016 11:36:28 +0000 (12:36 +0100)
This isn't used in moodle core and is problematic on oracle, don't test
it.

lib/tests/accesslib_test.php

index 04686f6..5dbf8b7 100644 (file)
@@ -1453,10 +1453,6 @@ class core_accesslib_testcase extends advanced_testcase {
         $this->assertObjectHasAttribute('lastname', $users[$user3->id]);
         $this->assertObjectHasAttribute('firstname', $users[$user3->id]);
 
-        $users = get_role_users($teacherrole->id, $coursecontext, false, 'u.*');
-        $this->assertDebuggingNotCalled();
-        $this->assertCount(2, $users);
-
         $users = get_role_users($teacherrole->id, $coursecontext, false, 'u.id AS id_alias');
         $this->assertDebuggingCalled('get_role_users() adding u.lastname, u.firstname to the query result because they were required by $sort but missing in $fields');
         $this->assertCount(2, $users);