5 require_once(__DIR__ .
"/mocks.php");
21 PHPUnit_Framework_Error_Deprecated::$enabled =
false;
23 require_once(
"./Modules/StudyProgramme/classes/class.ilObjStudyProgramme.php");
25 include_once(
"./Services/PHPUnit/classes/class.ilUnitUtil.php");
26 ilUnitUtil::performInitialisation();
29 $this->root->putInTree(ROOT_FOLDER_ID);
38 $this->root->addNode($this->node1);
39 $this->root->addNode($this->node2);
40 $this->node1->addLeaf($this->leaf1);
41 $this->node2->addLeaf($this->leaf2);
55 $this->root->delete();
76 return array($this->root->assignUser(
$user->getId()),
$user);
86 require_once(
"Services/Tracking/classes/class.ilLPStatusWrapper.php");
87 require_once(
"Services/Tracking/classes/class.ilLPStatus.php");
112 require_once(
"Services/Tracking/classes/class.ilLPStatusWrapper.php");
113 require_once(
"Services/Tracking/classes/class.ilLPStatus.php");
138 require_once(
"Services/Tracking/classes/class.ilLPStatusWrapper.php");
139 require_once(
"Services/Tracking/classes/class.ilLPStatus.php");
162 $USER_ID = $user2->getId();
164 $node2_progress = array_shift($this->node2->getProgressesOf(
$user->getId()));
165 $node2_progress->markAccredited($USER_ID);
167 require_once(
"Services/Tracking/classes/class.ilLPStatusWrapper.php");
168 require_once(
"Services/Tracking/classes/class.ilLPStatus.php");
191 $USER_ID = $user2->getId();
193 $node2_progress = array_shift($this->node2->getProgressesOf(
$user->getId()));
194 $node2_progress->markAccredited($USER_ID);
201 $node2_progress->unmarkAccredited();
226 $USER_ID = $user2->getId();
228 $node2_progress = array_shift($this->node2->getProgressesOf(
$user->getId()));
229 $node2_progress->markNotRelevant($USER_ID);
253 $USER_ID = $user2->getId();
255 $node2_progress = array_shift($this->node2->getProgressesOf(
$user->getId()));
256 $node2_progress->markFailed($USER_ID);
280 $USER_ID = $user2->getId();
282 $node2_progress = array_shift($this->node2->getProgressesOf(
$user->getId()));
283 $node2_progress->markFailed($USER_ID);
298 $node2_progress->markNotFailed($USER_ID);
314 $this->root->addNode($node3);
316 $node3_progress = array_shift($node3->getProgressesOf(
$user->getId()));
317 $this->assertNotNull($node3_progress);
const LP_STATUS_COMPLETED_NUM
const LP_STATUS_IN_PROGRESS_NUM
testNewNodesAreNotRelevant()
const LP_STATUS_NOT_ATTEMPTED_NUM
static createInstance()
Create an instance of ilObjStudyProgramme, put in cache.
testInitialProgressOutdated()
static _determineStatus($a_obj_id, $a_usr_id)
Determine status.
const LP_STATUS_FAILED_NUM
TestCase for the learning progress of users at a programme.