MDL-21015 Completion lib unit test fix for FakeDBUnitTestCase (didn't need it)
authorSam Marshall <s.marshall@open.ac.uk>
Tue, 1 Dec 2009 16:29:36 +0000 (16:29 +0000)
committerSam Marshall <s.marshall@open.ac.uk>
Tue, 1 Dec 2009 16:29:36 +0000 (16:29 +0000)
lib/simpletest/testcompletionlib.php

index 747c1ca..3cd0aa4 100644 (file)
@@ -87,7 +87,7 @@ class TimeModifiedExpectation extends SimpleExpectation {
     }
 }
 
-class completionlib_test extends FakeDBUnitTestCase {
+class completionlib_test extends UnitTestCase {
 
     public static $includecoverage = array('lib/completionlib.php');
     var $realdb,$realcfg,$realsession,$realuser;
@@ -597,7 +597,7 @@ WHERE
         $c=new completion_cutdown();
         $c->__construct((object)array('id'=>42));
 
-        $cm=(object)array('course'=>42,'id'=>13,'completiongradeitemnumber'=>null);
+        $cm=(object)array('course'=>42,'id'=>13,'completion'=>0,'completiongradeitemnumber'=>null);
         $item=(object)array('itemnumber'=>3);
         $grade=(object)array('userid'=>31337);