ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
TestCase for the ilObjStudyProgramme needsInstalledILIAS. More...
Protected Member Functions | |
setUp () | |
tearDown () | |
createSmallTree () | |
Creates a small tree, used by various tests. More... | |
Protected Attributes | |
$backupGlobals = false | |
TestCase for the ilObjStudyProgramme 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().
|
protected |
Definition at line 39 of file ilObjStudyProgrammeTest.php.
References $DIC, and ilObjStudyProgramme\createInstance().
|
protected |
Definition at line 64 of file ilObjStudyProgrammeTest.php.
ilObjStudyProgrammeTest::testAddLeaf | ( | ) |
Test on addLeaf.
testTreeCreation
Definition at line 413 of file ilObjStudyProgrammeTest.php.
References createSmallTree(), and ilStudyProgramme\MODE_LP_COMPLETED.
ilObjStudyProgrammeTest::testAddNode | ( | ) |
Test on addNode.
testTreeCreation
Definition at line 353 of file ilObjStudyProgrammeTest.php.
References createSmallTree(), and ilStudyProgramme\MODE_POINTS.
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().
ilObjStudyProgrammeTest::testApplyToSubTreeNodes | ( | ) |
Test applyToSubTreeNodes on ilObjStudyProgramme.
testTreeCreation
Definition at line 318 of file ilObjStudyProgrammeTest.php.
References createSmallTree(), and ilStudyProgramme\DEFAULT_POINTS.
ilObjStudyProgrammeTest::testCanRemoveNodeWithNotRelevantProgress | ( | ) |
Definition at line 553 of file ilObjStudyProgrammeTest.php.
References createSmallTree(), ilStudyProgramme\STATUS_ACTIVE, and ilStudyProgramme\STATUS_OUTDATED.
ilObjStudyProgrammeTest::testCantRemoveNodeWithRelevantProgress | ( | ) |
Definition at line 536 of file ilObjStudyProgrammeTest.php.
References createSmallTree(), and ilStudyProgramme\STATUS_ACTIVE.
ilObjStudyProgrammeTest::testCreatableSubObjectsRaisesOnNonProgramRef | ( | ) |
Definition at line 621 of file ilObjStudyProgrammeTest.php.
References array, and ilObjStudyProgramme\getCreatableSubObjects().
ilObjStudyProgrammeTest::testCreatableSubObjectsWithoutRef | ( | ) |
Definition at line 607 of file ilObjStudyProgrammeTest.php.
References ilObjStudyProgramme\getCreatableSubObjects().
ilObjStudyProgrammeTest::testCreateableSubObjects | ( | ) |
Definition at line 570 of file ilObjStudyProgrammeTest.php.
References createSmallTree(), and ilObjStudyProgramme\getCreatableSubObjects().
ilObjStudyProgrammeTest::testCreatePermissionExists | ( | ) |
Definition at line 642 of file ilObjStudyProgrammeTest.php.
References array, and ilRbacReview\lookupCreateOperationIds().
ilObjStudyProgrammeTest::testCreation | ( | ) |
ilObjStudyProgrammeTest::testDefaults | ( | ) |
Definition at line 85 of file ilObjStudyProgrammeTest.php.
References ilStudyProgramme\STATUS_DRAFT.
ilObjStudyProgrammeTest::testDelete | ( | ) |
Test deletion of a ilObjStudyProgramme.
testCreation
Definition at line 189 of file ilObjStudyProgrammeTest.php.
References ilObjStudyProgramme\getInstanceByRefId().
ilObjStudyProgrammeTest::testDeleteRemovesEntriesInPrgSettings | ( | ) |
Definition at line 626 of file ilObjStudyProgrammeTest.php.
References $DIC, $ilDB, $res, and ilStudyProgramme\returnDbTableName().
ilObjStudyProgrammeTest::testGetInstanceByRefId | ( | ) |
Test loading over getInstance.
testCreation
Definition at line 140 of file ilObjStudyProgrammeTest.php.
References $orig, ilObjStudyProgramme\getInstanceByRefId(), IL_CAL_DATETIME, and ilObjStudyProgrammeCache\singleton().
ilObjStudyProgrammeTest::testLoadByObjId | ( | ) |
Test loading of ilObjStudyProgramme with obj_id.
and ref_id
testCreation
Definition at line 95 of file ilObjStudyProgrammeTest.php.
References $orig, ilObjStudyProgramme\getInstanceByRefId(), and IL_CAL_DATETIME.
ilObjStudyProgrammeTest::testLoadByRefId | ( | ) |
Test loading of ilObjStudyProgramme with ref_id.
testCreation
Definition at line 118 of file ilObjStudyProgrammeTest.php.
References $orig, and IL_CAL_DATETIME.
ilObjStudyProgrammeTest::testMoveTo | ( | ) |
Test on moveTo.
Definition at line 500 of file ilObjStudyProgrammeTest.php.
References createSmallTree(), and ilObjStudyProgramme\getAllChildren().
ilObjStudyProgrammeTest::testRemoveLeaf | ( | ) |
ilObjStudyProgrammeTest::testRemoveNode | ( | ) |
Test on removeNode.
testTreeCreation
Definition at line 379 of file ilObjStudyProgrammeTest.php.
References createSmallTree().
ilObjStudyProgrammeTest::testSettings | ( | ) |
Test tings on ilObjStudyProgramme.
testCreation
Definition at line 167 of file ilObjStudyProgrammeTest.php.
References ilObjStudyProgramme\getInstanceByRefId(), and ilStudyProgramme\STATUS_ACTIVE.
ilObjStudyProgrammeTest::testTreeCreation | ( | ) |
Test creating a small tree.
testCreation
Definition at line 218 of file ilObjStudyProgrammeTest.php.
References createSmallTree().
ilObjStudyProgrammeTest::testTreeDepth | ( | ) |
Test getDepth on ilObjStudyProgramme.
testTreeCreation
Definition at line 289 of file ilObjStudyProgrammeTest.php.
References createSmallTree().
ilObjStudyProgrammeTest::testTreeGetChildren | ( | ) |
Test function to get children or information about them.
testTreeCreation testGetInstanceByRefId
Definition at line 230 of file ilObjStudyProgrammeTest.php.
References createSmallTree(), and ilObjStudyProgramme\getAllChildren().
ilObjStudyProgrammeTest::testTreeGetParent | ( | ) |
Test getParent on ilObjStudyProgramme.
testTreeCreation
Definition at line 253 of file ilObjStudyProgrammeTest.php.
References createSmallTree().
ilObjStudyProgrammeTest::testTreeGetParents | ( | ) |
testTreeCreation
Definition at line 266 of file ilObjStudyProgrammeTest.php.
References array, ilObjStudyProgramme\createInstance(), and createSmallTree().
ilObjStudyProgrammeTest::testTreeGetRoot | ( | ) |
Test getRoot on ilObjStudyProgramme.
testTreeCreation
Definition at line 304 of file ilObjStudyProgrammeTest.php.
References createSmallTree().
|
protected |
Definition at line 37 of file ilObjStudyProgrammeTest.php.