24use PHPUnit\Framework\TestCase;
40 protected function setUp() : void
42 include_once(
"./Services/PHPUnit/classes/class.ilUnitUtil.php");
43 ilUnitUtil::performInitialisation();
58 include_once
'./Services/Tracking/classes/class.ilChangeEvent.php';
108 include_once
'./Services/Tracking/classes/class.ilLPMarks.php';
109 include_once
'./Services/Tracking/classes/class.ilLPStatusFactory.php';
112 $marks->setMark(
'Gut');
113 $marks->setComment(
'Weiter so');
114 $marks->setCompleted(
true);
118 $mark = $marks->getMark();
119 $this->assertEquals($mark,
'Gut');
122 $this->assertEquals(
$comment,
'Weiter so');
125 $completed = $class::_getCompleted(999);
126 $this->assertEquals(array(888), $completed);
An exception for terminatinating execution or to throw for unit testing.
static _lookupChangeState($obj_id, $usr_id)
Returns the change state of the object for the specified user.
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.
static deleteObject($a_obj_id)
Delete object.
static _lookupComment($a_usr_id, $a_obj_id)
static _getClassById($a_obj_id, $a_mode=null)
Unit tests for tree table @group needsInstalledILIAS.
testLPMarks()
Test lp object settings.
testChangeEvent()
change event test @group IL_Init
foreach($_POST as $key=> $value) $res