ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilTrackingTest Class Reference

Unit tests for tree table. More...

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

Public Member Functions

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

Protected Member Functions

 setUp ()

Protected Attributes

 $backupGlobals = FALSE

Detailed Description

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.

Member Function Documentation

ilTrackingTest::setUp ( )
protected

Definition at line 37 of file ilTrackingTest.php.

{
include_once("./Services/PHPUnit/classes/class.ilUnitUtil.php");
ilUnitUtil::performInitialisation();
}
ilTrackingTest::testChangeEvent ( )

change event test IL_Init

Parameters
@return

Definition at line 49 of file ilTrackingTest.php.

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

{
global $ilUser;
include_once './Services/Tracking/classes/class.ilChangeEvent.php';
$res = ilChangeEvent::_lookupChangeState(9,$ilUser->getId());
$res = ilChangeEvent::_lookupInsideChangeState(9,$ilUser->getId());
}

+ Here is the call graph for this function:

ilTrackingTest::testLPMarks ( )

Test lp object settings.

Test LP marks IL_Init

Parameters
@return

Definition at line 102 of file ilTrackingTest.php.

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

{
include_once './Services/Tracking/classes/class.ilLPMarks.php';
include_once './Services/Tracking/classes/class.ilLPStatusFactory.php';
$marks = new ilLPMarks(999,888);
$marks->setMark('Gut');
$marks->setComment('Weiter so');
$marks->setCompleted(true);
$marks->update();
$marks = new ilLPMarks(999,888);
$mark = $marks->getMark();
$this->assertEquals($mark,'Gut');
$this->assertEquals($comment,'Weiter so');
$completed = $class::_getCompleted(999);
$this->assertEquals(array(888),$completed);
}

+ Here is the call graph for this function:

Field Documentation

ilTrackingTest::$backupGlobals = FALSE
protected

Definition at line 35 of file ilTrackingTest.php.


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