|
ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
|
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 37 of file ilObjStudyProgrammeTest.php.
|
protected |
Creates a small tree, used by various tests.
Definition at line 261 of file ilObjStudyProgrammeTest.php.
References ilObjStudyProgramme\createInstance().
Referenced by testAddLeaf(), testAddNode(), testAddWrongChildType(), testApplyToSubTreeNodes(), testCanRemoveNodeWithNotRelevantProgress(), testCantRemoveNodeWithRelevantProgress(), testCreateableSubObjects(), testMoveTo(), testRemoveNode(), testTreeCreation(), testTreeDepth(), testTreeGetAllPrgChildren(), 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 41 of file ilObjStudyProgrammeTest.php.
References $DIC, Vendor\Package\$e, and ilObjStudyProgramme\createInstance().
Here is the call graph for this function:
|
protected |
Definition at line 68 of file ilObjStudyProgrammeTest.php.
| ilObjStudyProgrammeTest::testAddLeaf | ( | ) |
Test on addLeaf.
@depends testTreeCreation
Definition at line 484 of file ilObjStudyProgrammeTest.php.
References createSmallTree(), and ilStudyProgrammeSettings\MODE_LP_COMPLETED.
Here is the call graph for this function:| ilObjStudyProgrammeTest::testAddNode | ( | ) |
Test on addNode.
@depends testTreeCreation
Definition at line 424 of file ilObjStudyProgrammeTest.php.
References createSmallTree(), and ilStudyProgrammeSettings\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 534 of file ilObjStudyProgrammeTest.php.
References Vendor\Package\$e, and createSmallTree().
Here is the call graph for this function:| ilObjStudyProgrammeTest::testApplyToSubTreeNodes | ( | ) |
Test applyToSubTreeNodes on ilObjStudyProgramme.
@depends testTreeCreation
Definition at line 389 of file ilObjStudyProgrammeTest.php.
References createSmallTree(), and ilStudyProgrammeSettings\DEFAULT_POINTS.
Here is the call graph for this function:| ilObjStudyProgrammeTest::testCanRemoveNodeWithNotRelevantProgress | ( | ) |
Definition at line 624 of file ilObjStudyProgrammeTest.php.
References createSmallTree(), ilStudyProgrammeSettings\STATUS_ACTIVE, and ilStudyProgrammeSettings\STATUS_OUTDATED.
Here is the call graph for this function:| ilObjStudyProgrammeTest::testCantRemoveNodeWithRelevantProgress | ( | ) |
@expectedException ilStudyProgrammeTreeException
Definition at line 607 of file ilObjStudyProgrammeTest.php.
References createSmallTree(), and ilStudyProgrammeSettings\STATUS_ACTIVE.
Here is the call graph for this function:| ilObjStudyProgrammeTest::testCreatableSubObjectsRaisesOnNonProgramRef | ( | ) |
@expectedException ilException
Definition at line 692 of file ilObjStudyProgrammeTest.php.
References ilObjStudyProgramme\getCreatableSubObjects().
Here is the call graph for this function:| ilObjStudyProgrammeTest::testCreatableSubObjectsWithoutRef | ( | ) |
Definition at line 678 of file ilObjStudyProgrammeTest.php.
References ilObjStudyProgramme\getCreatableSubObjects().
Here is the call graph for this function:| ilObjStudyProgrammeTest::testCreateableSubObjects | ( | ) |
Definition at line 641 of file ilObjStudyProgrammeTest.php.
References createSmallTree(), and ilObjStudyProgramme\getCreatableSubObjects().
Here is the call graph for this function:| ilObjStudyProgrammeTest::testCreatePermissionExists | ( | ) |
Definition at line 713 of file ilObjStudyProgrammeTest.php.
References ilRbacReview\lookupCreateOperationIds().
Here is the call graph for this function:| ilObjStudyProgrammeTest::testCreation | ( | ) |
Test creation of ilObjStudyProgramme.
Definition at line 78 of file ilObjStudyProgrammeTest.php.
| ilObjStudyProgrammeTest::testDefaults | ( | ) |
Definition at line 89 of file ilObjStudyProgrammeTest.php.
References ilStudyProgrammeSettings\STATUS_DRAFT.
| ilObjStudyProgrammeTest::testDelete | ( | ) |
Test deletion of a ilObjStudyProgramme.
@depends testCreation
Definition at line 251 of file ilObjStudyProgrammeTest.php.
References ilObjStudyProgramme\getInstanceByRefId().
Here is the call graph for this function:| ilObjStudyProgrammeTest::testDeleteRemovesEntriesInPrgSettings | ( | ) |
Definition at line 697 of file ilObjStudyProgrammeTest.php.
References $DIC, $ilDB, $res, and ilStudyProgrammeSettingsDBRepository\TABLE.
| ilObjStudyProgrammeTest::testGetInstanceByRefId | ( | ) |
Test loading over getInstance.
@depends testCreation
Definition at line 144 of file ilObjStudyProgrammeTest.php.
References ilObjStudyProgramme\getInstanceByRefId(), 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 99 of file ilObjStudyProgrammeTest.php.
References ilObjStudyProgramme\getInstanceByRefId().
Here is the call graph for this function:| ilObjStudyProgrammeTest::testLoadByRefId | ( | ) |
Test loading of ilObjStudyProgramme with ref_id.
@depends testCreation
Definition at line 122 of file ilObjStudyProgrammeTest.php.
| ilObjStudyProgrammeTest::testMoveTo | ( | ) |
Test on moveTo.
Definition at line 571 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 517 of file ilObjStudyProgrammeTest.php.
| ilObjStudyProgrammeTest::testRemoveNode | ( | ) |
Test on removeNode.
@depends testTreeCreation
Definition at line 450 of file ilObjStudyProgrammeTest.php.
References Vendor\Package\$e, and createSmallTree().
Here is the call graph for this function:| ilObjStudyProgrammeTest::testSettings | ( | ) |
Test settings on ilObjStudyProgramme.
@depends testCreation
Definition at line 171 of file ilObjStudyProgrammeTest.php.
References ilObjStudyProgramme\getInstanceByRefId(), and ilStudyProgrammeSettings\STATUS_ACTIVE.
Here is the call graph for this function:| ilObjStudyProgrammeTest::testTreeCreation | ( | ) |
Test creating a small tree.
@depends testCreation
Definition at line 280 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 360 of file ilObjStudyProgrammeTest.php.
References createSmallTree().
Here is the call graph for this function:| ilObjStudyProgrammeTest::testTreeGetAllPrgChildren | ( | ) |
Definition at line 310 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 292 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 324 of file ilObjStudyProgrammeTest.php.
References createSmallTree().
Here is the call graph for this function:| ilObjStudyProgrammeTest::testTreeGetParents | ( | ) |
@depends testTreeCreation
Definition at line 337 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 375 of file ilObjStudyProgrammeTest.php.
References createSmallTree().
Here is the call graph for this function:
|
protected |
Definition at line 39 of file ilObjStudyProgrammeTest.php.