5 require_once(__DIR__.
"/mocks.php");
19 PHPUnit_Framework_Error_Deprecated::$enabled = FALSE;
21 require_once(
"./Modules/StudyProgramme/classes/class.ilObjStudyProgramme.php");
23 include_once(
"./Services/PHPUnit/classes/class.ilUnitUtil.php");
24 ilUnitUtil::performInitialisation();
27 $this->root->putInTree(ROOT_FOLDER_ID);
36 $this->root->addNode($this->node1);
37 $this->root->addNode($this->node2);
38 $this->node1->addLeaf($this->leaf1);
39 $this->node2->addLeaf($this->leaf2);
52 $this->root->delete();
70 return array($this->root->assignUser($user->getId()), $user);
79 require_once(
"Services/Tracking/classes/class.ilLPStatusWrapper.php");
80 require_once(
"Services/Tracking/classes/class.ilLPStatus.php");
101 require_once(
"Services/Tracking/classes/class.ilLPStatusWrapper.php");
102 require_once(
"Services/Tracking/classes/class.ilLPStatus.php");
123 require_once(
"Services/Tracking/classes/class.ilLPStatusWrapper.php");
124 require_once(
"Services/Tracking/classes/class.ilLPStatus.php");
143 $USER_ID = $user2->getId();
145 $node2_progress = array_shift($this->node2->getProgressesOf($user->getId()));
146 $node2_progress->markAccredited($USER_ID);
148 require_once(
"Services/Tracking/classes/class.ilLPStatusWrapper.php");
149 require_once(
"Services/Tracking/classes/class.ilLPStatus.php");
168 $USER_ID = $user2->getId();
170 $node2_progress = array_shift($this->node2->getProgressesOf($user->getId()));
171 $node2_progress->markAccredited($USER_ID);
177 $node2_progress->unmarkAccredited();
198 $USER_ID = $user2->getId();
200 $node2_progress = array_shift($this->node2->getProgressesOf($user->getId()));
201 $node2_progress->markNotRelevant($USER_ID);
222 $this->root->addNode($node3);
224 $node3_progress = array_shift($node3->getProgressesOf($user->getId()));
225 $this->assertNotNull($node3_progress);
const LP_STATUS_COMPLETED_NUM
const LP_STATUS_IN_PROGRESS_NUM
testNewNodesAreNotRelevant()
Create styles array
The data for the language used.
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.
TestCase for the learning progress of users at a programme.