From 3d99b4ac2eab1560f139c029ca401844fd89d406 Mon Sep 17 00:00:00 2001 From: Sam Marshall Date: Tue, 1 Dec 2009 16:29:36 +0000 Subject: [PATCH] MDL-21015 Completion lib unit test fix for FakeDBUnitTestCase (didn't need it) --- lib/simpletest/testcompletionlib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/simpletest/testcompletionlib.php b/lib/simpletest/testcompletionlib.php index 747c1cadf5..3cd0aa4c19 100644 --- a/lib/simpletest/testcompletionlib.php +++ b/lib/simpletest/testcompletionlib.php @@ -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); -- 2.39.5