ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
ilTrackingTest Class Reference

Unit tests for tree table @group needsInstalledILIAS. More...

+ Inheritance diagram for ilTrackingTest:
+ Collaboration diagram for ilTrackingTest:

Public Member Functions

 testChangeEvent ()
 change event test @group IL_Init More...
 
 testLPMarks ()
 Test lp object settings. More...
 

Protected Member Functions

 setUp ()
 

Protected Attributes

 $backupGlobals = false
 

Detailed Description

Unit tests for tree table @group needsInstalledILIAS.

Author
Stefan Meyer meyer.nosp@m.@lei.nosp@m.fos.c.nosp@m.om
Version
$Id$

Definition at line 36 of file ilTrackingTest.php.

Member Function Documentation

◆ setUp()

ilTrackingTest::setUp ( )
protected

Definition at line 40 of file ilTrackingTest.php.

40 : void
41 {
42 include_once("./Services/PHPUnit/classes/class.ilUnitUtil.php");
43 ilUnitUtil::performInitialisation();
44 }

◆ testChangeEvent()

ilTrackingTest::testChangeEvent ( )

change event test @group IL_Init

Parameters

return

Definition at line 52 of file ilTrackingTest.php.

53 {
54 global $DIC;
55
56 $ilUser = $DIC['ilUser'];
57
58 include_once './Services/Tracking/classes/class.ilChangeEvent.php';
61
64 }
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.
$ret
Definition: parser.php:6
foreach($_POST as $key=> $value) $res
$ilUser
Definition: imgupload.php:18
$DIC
Definition: xapitoken.php:46

References $DIC, $ilUser, $res, $ret, ilChangeEvent\_activate(), ilChangeEvent\_deactivate(), ilChangeEvent\_lookupChangeState(), and ilChangeEvent\_lookupUncaughtWriteEvents().

+ Here is the call graph for this function:

◆ testLPMarks()

ilTrackingTest::testLPMarks ( )

Test lp object settings.

Test LP marks @group IL_Init

Parameters

return

Definition at line 106 of file ilTrackingTest.php.

107 {
108 include_once './Services/Tracking/classes/class.ilLPMarks.php';
109 include_once './Services/Tracking/classes/class.ilLPStatusFactory.php';
110
111 $marks = new ilLPMarks(999, 888);
112 $marks->setMark('Gut');
113 $marks->setComment('Weiter so');
114 $marks->setCompleted(true);
115 $marks->update();
116
117 $marks = new ilLPMarks(999, 888);
118 $mark = $marks->getMark();
119 $this->assertEquals($mark, 'Gut');
120
122 $this->assertEquals($comment, 'Weiter so');
123
125 $completed = $class::_getCompleted(999);
126 $this->assertEquals(array(888), $completed);
127
129 }
$comment
Definition: buildRTE.php:83
static deleteObject($a_obj_id)
Delete object.
static _lookupComment($a_usr_id, $a_obj_id)
static _getClassById($a_obj_id, $a_mode=null)

References $comment, ilLPStatusFactory\_getClassById(), ilLPMarks\_lookupComment(), ilLPMarks\deleteObject(), and ilLPObjSettings\LP_MODE_MANUAL.

+ Here is the call graph for this function:

Field Documentation

◆ $backupGlobals

ilTrackingTest::$backupGlobals = false
protected

Definition at line 38 of file ilTrackingTest.php.


The documentation for this class was generated from the following file: