Unit tests for tree table.
More...
Unit tests for tree table.
- Author
- Stefan Meyer meyer.nosp@m.@lei.nosp@m.fos.c.nosp@m.om
- Version
- $Id$
Definition at line 33 of file ilTrackingTest.php.
◆ setUp()
ilTrackingTest::setUp |
( |
| ) |
|
|
protected |
Definition at line 37 of file ilTrackingTest.php.
38 {
39 include_once("./Services/PHPUnit/classes/class.ilUnitUtil.php");
40 ilUnitUtil::performInitialisation();
41 }
◆ testChangeEvent()
ilTrackingTest::testChangeEvent |
( |
| ) |
|
change event test @group IL_Init
- Parameters
-
return
Definition at line 49 of file ilTrackingTest.php.
50 {
52
53 include_once './Services/Tracking/classes/class.ilChangeEvent.php';
56
60 }
static _lookupChangeState($obj_id, $usr_id)
Returns the change state of the object for the specified user.
static _lookupInsideChangeState($parent_obj_id, $usr_id)
Returns the changed state of objects which are children of the specified parent object.
static _lookupUncaughtWriteEvents($obj_id, $usr_id)
Catches up with all write events which occured before the specified timestamp.
static _activate()
Activates change event tracking.
static _deactivate()
Deactivates change event tracking.
References $ilUser, $res, $ret, ilChangeEvent\_activate(), ilChangeEvent\_deactivate(), ilChangeEvent\_lookupChangeState(), ilChangeEvent\_lookupInsideChangeState(), and ilChangeEvent\_lookupUncaughtWriteEvents().
◆ testLPMarks()
ilTrackingTest::testLPMarks |
( |
| ) |
|
Test lp object settings.
Test LP marks @group IL_Init
- Parameters
-
return
Definition at line 102 of file ilTrackingTest.php.
103 {
104 include_once './Services/Tracking/classes/class.ilLPMarks.php';
105 include_once './Services/Tracking/classes/class.ilLPStatusFactory.php';
106
108 $marks->setMark('Gut');
109 $marks->setComment('Weiter so');
110 $marks->setCompleted(true);
111 $marks->update();
112
114 $mark = $marks->getMark();
115 $this->assertEquals($mark,'Gut');
116
118 $this->assertEquals(
$comment,
'Weiter so');
119
121 $completed = $class::_getCompleted(999);
122 $this->assertEquals(array(888),$completed);
123
125 }
static deleteObject($a_obj_id)
Delete object.
_lookupComment($a_usr_id, $a_obj_id)
_getClassById($a_obj_id, $a_mode=NULL)
References $comment, ilLPStatusFactory\_getClassById(), ilLPMarks\_lookupComment(), ilLPMarks\deleteObject(), and ilLPObjSettings\LP_MODE_MANUAL.
◆ $backupGlobals
ilTrackingTest::$backupGlobals = FALSE |
|
protected |
The documentation for this class was generated from the following file: