Update of /cvsroot/logicampus/logicampus/src/logicreate/services/unitTest
In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv20284/services/unitTest
Modified Files:
learningobjectTest.php
Log Message:
fixes to learning object tests.
Index: learningobjectTest.php
===================================================================
RCS file: /cvsroot/logicampus/logicampus/src/logicreate/services/unitTest/learningobjectTest.php,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** learningobjectTest.php 27 Sep 2007 20:11:36 -0000 1.3
--- learningobjectTest.php 1 Feb 2008 03:11:09 -0000 1.4
***************
*** 3,6 ****
--- 3,7 ----
include(LIB_PATH.'lc_lob_content.php');
include(LIB_PATH.'lc_lob_class.php');
+ include(LIB_PATH.'lc_lob_test.php');
class LearningObjectTest extends UnitTestCase {
***************
*** 91,103 ****
*/
function testCopyARepoEntry() {
$lob = new Lc_Lob_Content();
//setup a fake PKEY
$lob->repoObj->lobRepoEntryId = 1;
! $classContent = $lob->useInClass('notify');
$e = ErrorStack::pullError('php');
//e might be an error saying that the repo doesn't have all its data.
if ($e) {
! $this->fail();
} else {
$this->assertTrue( is_object($classContent) );
--- 92,105 ----
*/
function testCopyARepoEntry() {
+ $classId = 1;
$lob = new Lc_Lob_Content();
//setup a fake PKEY
$lob->repoObj->lobRepoEntryId = 1;
! $classContent = $lob->useInClass($classId,'notify');
$e = ErrorStack::pullError('php');
//e might be an error saying that the repo doesn't have all its data.
if ($e) {
! $this->fail($e->message);
} else {
$this->assertTrue( is_object($classContent) );
|