|
ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
TestCase for the ilObjStudyProgramme @group needsInstalledILIAS. 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 @group needsInstalledILIAS.
Definition at line 35 of file ilObjStudyProgrammeTest.php.
|
protected |
Creates a small tree, used by various tests.
Definition at line 199 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 39 of file ilObjStudyProgrammeTest.php.
References $DIC, $tree, and ilObjStudyProgramme\createInstance().
Here is the call graph for this function:
|
protected |
Definition at line 64 of file ilObjStudyProgrammeTest.php.
| ilObjStudyProgrammeTest::testAddLeaf | ( | ) |
Test on addLeaf.
@depends testTreeCreation
Definition at line 413 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 353 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 463 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 318 of file ilObjStudyProgrammeTest.php.
References createSmallTree(), and ilStudyProgramme\DEFAULT_POINTS.
Here is the call graph for this function:| ilObjStudyProgrammeTest::testCanRemoveNodeWithNotRelevantProgress | ( | ) |
Definition at line 553 of file ilObjStudyProgrammeTest.php.
References $user, createSmallTree(), ilStudyProgramme\STATUS_ACTIVE, and ilStudyProgramme\STATUS_OUTDATED.
Here is the call graph for this function:| ilObjStudyProgrammeTest::testCantRemoveNodeWithRelevantProgress | ( | ) |
@expectedException ilStudyProgrammeTreeException
Definition at line 536 of file ilObjStudyProgrammeTest.php.
References $user, createSmallTree(), and ilStudyProgramme\STATUS_ACTIVE.
Here is the call graph for this function:| ilObjStudyProgrammeTest::testCreatableSubObjectsRaisesOnNonProgramRef | ( | ) |
@expectedException ilException
Definition at line 621 of file ilObjStudyProgrammeTest.php.
References ilObjStudyProgramme\getCreatableSubObjects().
Here is the call graph for this function:| ilObjStudyProgrammeTest::testCreatableSubObjectsWithoutRef | ( | ) |
Definition at line 607 of file ilObjStudyProgrammeTest.php.
References ilObjStudyProgramme\getCreatableSubObjects().
Here is the call graph for this function:| ilObjStudyProgrammeTest::testCreateableSubObjects | ( | ) |
Definition at line 570 of file ilObjStudyProgrammeTest.php.
References createSmallTree(), and ilObjStudyProgramme\getCreatableSubObjects().
Here is the call graph for this function:| ilObjStudyProgrammeTest::testCreatePermissionExists | ( | ) |
Definition at line 642 of file ilObjStudyProgrammeTest.php.
References ilRbacReview\lookupCreateOperationIds().
Here is the call graph for this function:| ilObjStudyProgrammeTest::testCreation | ( | ) |
Test creation of ilObjStudyProgramme.
Definition at line 74 of file ilObjStudyProgrammeTest.php.
| ilObjStudyProgrammeTest::testDefaults | ( | ) |
Definition at line 85 of file ilObjStudyProgrammeTest.php.
References ilStudyProgramme\STATUS_DRAFT.
| ilObjStudyProgrammeTest::testDelete | ( | ) |
Test deletion of a ilObjStudyProgramme.
@depends testCreation
Definition at line 189 of file ilObjStudyProgrammeTest.php.
References ilObjStudyProgramme\getInstanceByRefId().
Here is the call graph for this function:| ilObjStudyProgrammeTest::testDeleteRemovesEntriesInPrgSettings | ( | ) |
Definition at line 626 of file ilObjStudyProgrammeTest.php.
References $DIC, $ilDB, $res, and ilStudyProgramme\returnDbTableName().
Here is the call graph for this function:| ilObjStudyProgrammeTest::testGetInstanceByRefId | ( | ) |
Test loading over getInstance.
@depends testCreation
Definition at line 140 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 95 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 118 of file ilObjStudyProgrammeTest.php.
References IL_CAL_DATETIME.
| ilObjStudyProgrammeTest::testMoveTo | ( | ) |
Test on moveTo.
Definition at line 500 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 446 of file ilObjStudyProgrammeTest.php.
| ilObjStudyProgrammeTest::testRemoveNode | ( | ) |
Test on removeNode.
@depends testTreeCreation
Definition at line 379 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 167 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 218 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 289 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 230 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 253 of file ilObjStudyProgrammeTest.php.
References createSmallTree().
Here is the call graph for this function:| ilObjStudyProgrammeTest::testTreeGetParents | ( | ) |
@depends testTreeCreation
Definition at line 266 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 304 of file ilObjStudyProgrammeTest.php.
References createSmallTree().
Here is the call graph for this function:
|
protected |
Definition at line 37 of file ilObjStudyProgrammeTest.php.