ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
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 186 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 38 of file ilObjStudyProgrammeTest.php.
References $DIC, and ilObjStudyProgramme\createInstance().
|
protected |
Definition at line 62 of file ilObjStudyProgrammeTest.php.
ilObjStudyProgrammeTest::testAddLeaf | ( | ) |
Test on addLeaf.
testTreeCreation
Definition at line 389 of file ilObjStudyProgrammeTest.php.
References createSmallTree(), and ilStudyProgramme\MODE_LP_COMPLETED.
ilObjStudyProgrammeTest::testAddNode | ( | ) |
Test on addNode.
testTreeCreation
Definition at line 332 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 437 of file ilObjStudyProgrammeTest.php.
References createSmallTree().
ilObjStudyProgrammeTest::testApplyToSubTreeNodes | ( | ) |
Test applyToSubTreeNodes on ilObjStudyProgramme.
testTreeCreation
Definition at line 298 of file ilObjStudyProgrammeTest.php.
References createSmallTree(), and ilStudyProgramme\DEFAULT_POINTS.
ilObjStudyProgrammeTest::testCanRemoveNodeWithNotRelevantProgress | ( | ) |
Definition at line 526 of file ilObjStudyProgrammeTest.php.
References createSmallTree(), ilStudyProgramme\STATUS_ACTIVE, and ilStudyProgramme\STATUS_OUTDATED.
ilObjStudyProgrammeTest::testCantRemoveNodeWithRelevantProgress | ( | ) |
Definition at line 510 of file ilObjStudyProgrammeTest.php.
References createSmallTree(), and ilStudyProgramme\STATUS_ACTIVE.
ilObjStudyProgrammeTest::testCreatableSubObjectsRaisesOnNonProgramRef | ( | ) |
Definition at line 590 of file ilObjStudyProgrammeTest.php.
References array, and ilObjStudyProgramme\getCreatableSubObjects().
ilObjStudyProgrammeTest::testCreatableSubObjectsWithoutRef | ( | ) |
Definition at line 578 of file ilObjStudyProgrammeTest.php.
References ilObjStudyProgramme\getCreatableSubObjects().
ilObjStudyProgrammeTest::testCreateableSubObjects | ( | ) |
Definition at line 542 of file ilObjStudyProgrammeTest.php.
References createSmallTree(), and ilObjStudyProgramme\getCreatableSubObjects().
ilObjStudyProgrammeTest::testCreatePermissionExists | ( | ) |
Definition at line 608 of file ilObjStudyProgrammeTest.php.
References array, and ilRbacReview\lookupCreateOperationIds().
ilObjStudyProgrammeTest::testCreation | ( | ) |
ilObjStudyProgrammeTest::testDefaults | ( | ) |
Definition at line 81 of file ilObjStudyProgrammeTest.php.
References ilStudyProgramme\STATUS_DRAFT.
ilObjStudyProgrammeTest::testDelete | ( | ) |
Test deletion of a ilObjStudyProgramme.
testCreation
Definition at line 177 of file ilObjStudyProgrammeTest.php.
References ilObjStudyProgramme\getInstanceByRefId().
ilObjStudyProgrammeTest::testDeleteRemovesEntriesInPrgSettings | ( | ) |
Definition at line 594 of file ilObjStudyProgrammeTest.php.
References $DIC, $ilDB, $res, and ilStudyProgramme\returnDbTableName().
ilObjStudyProgrammeTest::testGetInstanceByRefId | ( | ) |
Test loading over getInstance.
testCreation
Definition at line 131 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 90 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 111 of file ilObjStudyProgrammeTest.php.
References $orig, and IL_CAL_DATETIME.
ilObjStudyProgrammeTest::testMoveTo | ( | ) |
Test on moveTo.
Definition at line 475 of file ilObjStudyProgrammeTest.php.
References createSmallTree(), and ilObjStudyProgramme\getAllChildren().
ilObjStudyProgrammeTest::testRemoveLeaf | ( | ) |
ilObjStudyProgrammeTest::testRemoveNode | ( | ) |
Test on removeNode.
testTreeCreation
Definition at line 354 of file ilObjStudyProgrammeTest.php.
References createSmallTree().
ilObjStudyProgrammeTest::testSettings | ( | ) |
Test tings on ilObjStudyProgramme.
testCreation
Definition at line 156 of file ilObjStudyProgrammeTest.php.
References ilObjStudyProgramme\getInstanceByRefId(), and ilStudyProgramme\STATUS_ACTIVE.
ilObjStudyProgrammeTest::testTreeCreation | ( | ) |
Test creating a small tree.
testCreation
Definition at line 204 of file ilObjStudyProgrammeTest.php.
References createSmallTree().
ilObjStudyProgrammeTest::testTreeDepth | ( | ) |
Test getDepth on ilObjStudyProgramme.
testTreeCreation
Definition at line 271 of file ilObjStudyProgrammeTest.php.
References createSmallTree().
ilObjStudyProgrammeTest::testTreeGetChildren | ( | ) |
Test function to get children or information about them.
testTreeCreation testGetInstanceByRefId
Definition at line 215 of file ilObjStudyProgrammeTest.php.
References createSmallTree(), and ilObjStudyProgramme\getAllChildren().
ilObjStudyProgrammeTest::testTreeGetParent | ( | ) |
Test getParent on ilObjStudyProgramme.
testTreeCreation
Definition at line 237 of file ilObjStudyProgrammeTest.php.
References createSmallTree().
ilObjStudyProgrammeTest::testTreeGetParents | ( | ) |
testTreeCreation
Definition at line 249 of file ilObjStudyProgrammeTest.php.
References array, ilObjStudyProgramme\createInstance(), and createSmallTree().
ilObjStudyProgrammeTest::testTreeGetRoot | ( | ) |
Test getRoot on ilObjStudyProgramme.
testTreeCreation
Definition at line 285 of file ilObjStudyProgrammeTest.php.
References createSmallTree().
|
protected |
Definition at line 36 of file ilObjStudyProgrammeTest.php.