|
ILIAS
release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
|
TestCase for the ilObjStudyProgramme. More...
Inheritance diagram for ilObjStudyProgrammeTest:
Collaboration diagram for ilObjStudyProgrammeTest:Protected Member Functions | |
| setUp () | |
| tearDown () | |
| createSmallTree () | |
| Creates a small tree, used by various tests. More... | |
Protected Attributes | |
| $backupGlobals = FALSE | |
TestCase for the ilObjStudyProgramme.
Definition at line 34 of file ilObjStudyProgrammeTest.php.
|
protected |
Creates a small tree, used by various tests.
Definition at line 183 of file ilObjStudyProgrammeTest.php.
References ilObjStudyProgramme\createInstance().
Referenced by testAddLeaf(), testAddNode(), testAddWrongChildType(), testApplyToSubTreeNodes(), testCanRemoveNodeWithNotRelevantProgress(), testCantRemoveNodeWithRelevantProgress(), testCreateableSubObjects(), testMoveTo(), testRemoveNode(), testTreeCreation(), testTreeDepth(), testTreeGetChildren(), testTreeGetParent(), testTreeGetParents(), and testTreeGetRoot().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 37 of file ilObjStudyProgrammeTest.php.
References ilObjStudyProgramme\createInstance().
Here is the call graph for this function:
|
protected |
Definition at line 59 of file ilObjStudyProgrammeTest.php.
| ilObjStudyProgrammeTest::testAddLeaf | ( | ) |
Test on addLeaf.
@depends testTreeCreation
Definition at line 386 of file ilObjStudyProgrammeTest.php.
References createSmallTree(), and ilStudyProgramme\MODE_LP_COMPLETED.
Here is the call graph for this function:| ilObjStudyProgrammeTest::testAddNode | ( | ) |
Test on addNode.
@depends testTreeCreation
Definition at line 329 of file ilObjStudyProgrammeTest.php.
References createSmallTree(), and ilStudyProgramme\MODE_POINTS.
Here is the call graph for this function:| ilObjStudyProgrammeTest::testAddWrongChildType | ( | ) |
Test whether nodes can only be added when there is no leaf in the parent and vice versa.
Definition at line 434 of file ilObjStudyProgrammeTest.php.
References createSmallTree().
Here is the call graph for this function:| ilObjStudyProgrammeTest::testApplyToSubTreeNodes | ( | ) |
Test applyToSubTreeNodes on ilObjStudyProgramme.
@depends testTreeCreation
Definition at line 295 of file ilObjStudyProgrammeTest.php.
References createSmallTree(), and ilStudyProgramme\DEFAULT_POINTS.
Here is the call graph for this function:| ilObjStudyProgrammeTest::testCanRemoveNodeWithNotRelevantProgress | ( | ) |
Definition at line 523 of file ilObjStudyProgrammeTest.php.
References createSmallTree(), ilStudyProgramme\STATUS_ACTIVE, and ilStudyProgramme\STATUS_OUTDATED.
Here is the call graph for this function:| ilObjStudyProgrammeTest::testCantRemoveNodeWithRelevantProgress | ( | ) |
@expectedException ilStudyProgrammeTreeException
Definition at line 507 of file ilObjStudyProgrammeTest.php.
References createSmallTree(), and ilStudyProgramme\STATUS_ACTIVE.
Here is the call graph for this function:| ilObjStudyProgrammeTest::testCreatableSubObjectsRaisesOnNonProgramRef | ( | ) |
@expectedException ilException
Definition at line 587 of file ilObjStudyProgrammeTest.php.
References ilObjStudyProgramme\getCreatableSubObjects().
Here is the call graph for this function:| ilObjStudyProgrammeTest::testCreatableSubObjectsWithoutRef | ( | ) |
Definition at line 575 of file ilObjStudyProgrammeTest.php.
References ilObjStudyProgramme\getCreatableSubObjects().
Here is the call graph for this function:| ilObjStudyProgrammeTest::testCreateableSubObjects | ( | ) |
Definition at line 539 of file ilObjStudyProgrammeTest.php.
References createSmallTree(), and ilObjStudyProgramme\getCreatableSubObjects().
Here is the call graph for this function:| ilObjStudyProgrammeTest::testCreatePermissionExists | ( | ) |
Definition at line 604 of file ilObjStudyProgrammeTest.php.
References ilRbacReview\lookupCreateOperationIds().
Here is the call graph for this function:| ilObjStudyProgrammeTest::testCreation | ( | ) |
Test creation of ilObjStudyProgramme.
Definition at line 68 of file ilObjStudyProgrammeTest.php.
| ilObjStudyProgrammeTest::testDefaults | ( | ) |
Definition at line 78 of file ilObjStudyProgrammeTest.php.
References ilStudyProgramme\STATUS_DRAFT.
| ilObjStudyProgrammeTest::testDelete | ( | ) |
Test deletion of a ilObjStudyProgramme.
@depends testCreation
Definition at line 174 of file ilObjStudyProgrammeTest.php.
References ilObjStudyProgramme\getInstanceByRefId().
Here is the call graph for this function:| ilObjStudyProgrammeTest::testDeleteRemovesEntriesInPrgSettings | ( | ) |
Definition at line 591 of file ilObjStudyProgrammeTest.php.
References $ilDB, $res, and ilStudyProgramme\returnDbTableName().
Here is the call graph for this function:| ilObjStudyProgrammeTest::testGetInstanceByRefId | ( | ) |
Test loading over getInstance.
@depends testCreation
Definition at line 128 of file ilObjStudyProgrammeTest.php.
References ilObjStudyProgramme\getInstanceByRefId(), IL_CAL_DATETIME, and ilObjStudyProgrammeCache\singleton().
Here is the call graph for this function:| ilObjStudyProgrammeTest::testLoadByObjId | ( | ) |
Test loading of ilObjStudyProgramme with obj_id.
and ref_id
@depends testCreation
Definition at line 87 of file ilObjStudyProgrammeTest.php.
References ilObjStudyProgramme\getInstanceByRefId(), and IL_CAL_DATETIME.
Here is the call graph for this function:| ilObjStudyProgrammeTest::testLoadByRefId | ( | ) |
Test loading of ilObjStudyProgramme with ref_id.
@depends testCreation
Definition at line 108 of file ilObjStudyProgrammeTest.php.
References IL_CAL_DATETIME.
| ilObjStudyProgrammeTest::testMoveTo | ( | ) |
Test on moveTo.
Definition at line 472 of file ilObjStudyProgrammeTest.php.
References createSmallTree(), and ilObjStudyProgramme\getAllChildren().
Here is the call graph for this function:| ilObjStudyProgrammeTest::testRemoveLeaf | ( | ) |
Test on removeLead.
@depends testAddLeaf
Definition at line 418 of file ilObjStudyProgrammeTest.php.
| ilObjStudyProgrammeTest::testRemoveNode | ( | ) |
Test on removeNode.
@depends testTreeCreation
Definition at line 351 of file ilObjStudyProgrammeTest.php.
References createSmallTree().
Here is the call graph for this function:| ilObjStudyProgrammeTest::testSettings | ( | ) |
Test tings on ilObjStudyProgramme.
@depends testCreation
Definition at line 153 of file ilObjStudyProgrammeTest.php.
References ilObjStudyProgramme\getInstanceByRefId(), and ilStudyProgramme\STATUS_ACTIVE.
Here is the call graph for this function:| ilObjStudyProgrammeTest::testTreeCreation | ( | ) |
Test creating a small tree.
@depends testCreation
Definition at line 201 of file ilObjStudyProgrammeTest.php.
References createSmallTree().
Here is the call graph for this function:| ilObjStudyProgrammeTest::testTreeDepth | ( | ) |
Test getDepth on ilObjStudyProgramme.
@depends testTreeCreation
Definition at line 268 of file ilObjStudyProgrammeTest.php.
References createSmallTree().
Here is the call graph for this function:| ilObjStudyProgrammeTest::testTreeGetChildren | ( | ) |
Test function to get children or information about them.
@depends testTreeCreation @depends testGetInstanceByRefId
Definition at line 212 of file ilObjStudyProgrammeTest.php.
References createSmallTree(), and ilObjStudyProgramme\getAllChildren().
Here is the call graph for this function:| ilObjStudyProgrammeTest::testTreeGetParent | ( | ) |
Test getParent on ilObjStudyProgramme.
@depends testTreeCreation
Definition at line 234 of file ilObjStudyProgrammeTest.php.
References createSmallTree().
Here is the call graph for this function:| ilObjStudyProgrammeTest::testTreeGetParents | ( | ) |
@depends testTreeCreation
Definition at line 246 of file ilObjStudyProgrammeTest.php.
References ilObjStudyProgramme\createInstance(), and createSmallTree().
Here is the call graph for this function:| ilObjStudyProgrammeTest::testTreeGetRoot | ( | ) |
Test getRoot on ilObjStudyProgramme.
@depends testTreeCreation
Definition at line 282 of file ilObjStudyProgrammeTest.php.
References createSmallTree().
Here is the call graph for this function:
|
protected |
Definition at line 35 of file ilObjStudyProgrammeTest.php.