ILIAS  release_4-3 Revision
 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
 testLPMarks ()
 Test lp object settings.
 testLPCollections ()
 Test LP collections.

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

Parameters
@return

Definition at line 48 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::testLPCollections ( )

Test LP collections.

Returns

Definition at line 128 of file ilTrackingTest.php.

References ilLPCollections\_deleteAll().

{
include_once './Services/Tracking/classes/class.ilLPCollections.php';
$coll = new ilLPCollections(999);
$coll->add(888);
$coll->delete(888);
$coll->add(777);
}

+ Here is the call graph for this function:

ilTrackingTest::testLPMarks ( )

Test lp object settings.

Test LP marks

Parameters
@return

Definition at line 100 of file ilTrackingTest.php.

References $comment, ilLPStatusManual\_getCompleted(), ilLPMarks\_lookupComment(), and ilLPMarks\deleteObject().

{
include_once './Services/Tracking/classes/class.ilLPMarks.php';
include_once './Services/Tracking/classes/class.ilLPStatusManual.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');
$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: