|
ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
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 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().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 38 of file ilObjStudyProgrammeTest.php.
References $DIC, and ilObjStudyProgramme\createInstance().
Here is the call graph for this function:
|
protected |
Definition at line 62 of file ilObjStudyProgrammeTest.php.
| ilObjStudyProgrammeTest::testAddLeaf | ( | ) |
Test on addLeaf.
@depends testTreeCreation
Definition at line 389 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 332 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 437 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 298 of file ilObjStudyProgrammeTest.php.
References createSmallTree(), and ilStudyProgramme\DEFAULT_POINTS.
Here is the call graph for this function:| ilObjStudyProgrammeTest::testCanRemoveNodeWithNotRelevantProgress | ( | ) |
Definition at line 526 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 510 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 590 of file ilObjStudyProgrammeTest.php.
References ilObjStudyProgramme\getCreatableSubObjects().
Here is the call graph for this function:| ilObjStudyProgrammeTest::testCreatableSubObjectsWithoutRef | ( | ) |
Definition at line 578 of file ilObjStudyProgrammeTest.php.
References ilObjStudyProgramme\getCreatableSubObjects().
Here is the call graph for this function:| ilObjStudyProgrammeTest::testCreateableSubObjects | ( | ) |
Definition at line 542 of file ilObjStudyProgrammeTest.php.
References createSmallTree(), and ilObjStudyProgramme\getCreatableSubObjects().
Here is the call graph for this function:| ilObjStudyProgrammeTest::testCreatePermissionExists | ( | ) |
Definition at line 608 of file ilObjStudyProgrammeTest.php.
References ilRbacReview\lookupCreateOperationIds().
Here is the call graph for this function:| ilObjStudyProgrammeTest::testCreation | ( | ) |
Test creation of ilObjStudyProgramme.
Definition at line 71 of file ilObjStudyProgrammeTest.php.
| ilObjStudyProgrammeTest::testDefaults | ( | ) |
Definition at line 81 of file ilObjStudyProgrammeTest.php.
References ilStudyProgramme\STATUS_DRAFT.
| ilObjStudyProgrammeTest::testDelete | ( | ) |
Test deletion of a ilObjStudyProgramme.
@depends testCreation
Definition at line 177 of file ilObjStudyProgrammeTest.php.
References ilObjStudyProgramme\getInstanceByRefId().
Here is the call graph for this function:| ilObjStudyProgrammeTest::testDeleteRemovesEntriesInPrgSettings | ( | ) |
Definition at line 594 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 131 of file ilObjStudyProgrammeTest.php.
References $orig, 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 90 of file ilObjStudyProgrammeTest.php.
References $orig, 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 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().
Here is the call graph for this function:| ilObjStudyProgrammeTest::testRemoveLeaf | ( | ) |
Test on removeLead.
@depends testAddLeaf
Definition at line 421 of file ilObjStudyProgrammeTest.php.
| ilObjStudyProgrammeTest::testRemoveNode | ( | ) |
Test on removeNode.
@depends testTreeCreation
Definition at line 354 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 156 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 204 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 271 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 215 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 237 of file ilObjStudyProgrammeTest.php.
References createSmallTree().
Here is the call graph for this function:| ilObjStudyProgrammeTest::testTreeGetParents | ( | ) |
@depends testTreeCreation
Definition at line 249 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 285 of file ilObjStudyProgrammeTest.php.
References createSmallTree().
Here is the call graph for this function:
|
protected |
Definition at line 36 of file ilObjStudyProgrammeTest.php.