MDL-35762 fix deprecated use of get_fast_modinfo() reset.
authorEloy Lafuente (stronk7) <stronk7@moodle.org>
Tue, 6 Nov 2012 15:37:43 +0000 (16:37 +0100)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Tue, 6 Nov 2012 15:37:43 +0000 (16:37 +0100)
lib/tests/modinfolib_test.php

index 34a90a5..741162a 100644 (file)
@@ -177,8 +177,7 @@ class modinfolib_testcase extends advanced_testcase {
     }
     
     private function refresh_cm_info($course, $assign) {
-        $reset = 'reset';
-        get_fast_modinfo($reset);
+        get_fast_modinfo(0, 0, true);
         return get_fast_modinfo($course)->instances['assign'][$assign->id];
     }
 }