ILIAS
release_7 Revision v7.30-3-g800a261c036
|
Protected Member Functions | |
buildProgramme (int $prg_id) | |
getRootPrg () | |
setPointsForNode (int $node_id, int $points) | |
setModeForNode (int $node_id, int $mode) | |
Definition at line 7 of file ilStudyProgrammeProgressCalculationsTest.php.
|
protected |
Definition at line 9 of file ilStudyProgrammeProgressCalculationsTest.php.
References ilStudyProgrammeSettings\MODE_POINTS, ilStudyProgrammeAssessmentSettings\STATUS_ACTIVE, and ilStudyProgrammeProgress\STATUS_IN_PROGRESS.
Referenced by setUp().
|
protected |
Definition at line 65 of file ilStudyProgrammeProgressCalculationsTest.php.
Referenced by testAchievedPoints(), testChangingDeadline(), testChangingValidity(), testChildrenPossiblePointsAddition(), testDontChangeDeadlineForCompleted(), testDontChangeValidityForIncomplete(), testDontFailByDeadlineIfSucceeded(), testDontFailByFutureDeadline(), testFailByDeadline(), testInternalTreeIntegrity(), testMarkAccreditedOnLPNode(), testMarkAccreditedShouldCompleteParentBySufficientPoints(), testMarkAccreditedShouldNotChangeIrrelevantParent(), testMarkAsIndividual(), testMarkIrrelevantDoesNotCompleteParent(), testMarkRelevantShouldRecalculateStatusAndPoints(), testParentAcquisition(), testTranstitionToProgressWithPastDeadline(), testUpdateFromSettingsResetsIndividual(), and testUpdatePlanFromSettings().
|
protected |
Definition at line 79 of file ilStudyProgrammeProgressCalculationsTest.php.
Referenced by testMarkAccreditedOnLPNode(), and testSuccessionCompletingParents().
|
protected |
Definition at line 70 of file ilStudyProgrammeProgressCalculationsTest.php.
References ilStudyProgrammeAssessmentSettings\STATUS_ACTIVE.
Referenced by testAchievedPoints(), testChildrenPossiblePointsAddition(), testMarkAccreditedOnLPNode(), testMarkAccreditedShouldCompleteParentBySufficientPoints(), testMarkIrrelevantDoesNotCompleteParent(), and testSuccessionCompletingParents().
ilStudyProgrammeProgressCalculationsTest::setUp | ( | ) |
Definition at line 35 of file ilStudyProgrammeProgressCalculationsTest.php.
References buildProgramme().
ilStudyProgrammeProgressCalculationsTest::testAchievedPoints | ( | ) |
── 1 (1) ├── 11 (8) │ ├── 111 (5) │ └── 112 (10) ├── 12 (12) └── 13 (10)
Definition at line 195 of file ilStudyProgrammeProgressCalculationsTest.php.
References getRootPrg(), and setPointsForNode().
ilStudyProgrammeProgressCalculationsTest::testChangingDeadline | ( | ) |
Definition at line 435 of file ilStudyProgrammeProgressCalculationsTest.php.
References getRootPrg(), and ilStudyProgrammeProgress\STATUS_FAILED.
ilStudyProgrammeProgressCalculationsTest::testChangingValidity | ( | ) |
Definition at line 478 of file ilStudyProgrammeProgressCalculationsTest.php.
References add(), getRootPrg(), and ilStudyProgrammeProgress\STATUS_COMPLETED.
ilStudyProgrammeProgressCalculationsTest::testChildrenPossiblePointsAddition | ( | ) |
── 1 (1) ├── 11 (8) │ ├── 111 (5) │ └── 112 (10) <– turns irrelevant ├── 12 (12) <– turns irrelevant └── 13 (10)
Definition at line 146 of file ilStudyProgrammeProgressCalculationsTest.php.
References getRootPrg(), and setPointsForNode().
ilStudyProgrammeProgressCalculationsTest::testDontChangeDeadlineForCompleted | ( | ) |
Definition at line 446 of file ilStudyProgrammeProgressCalculationsTest.php.
References getRootPrg(), and ilStudyProgrammeProgress\STATUS_COMPLETED.
ilStudyProgrammeProgressCalculationsTest::testDontChangeValidityForIncomplete | ( | ) |
Definition at line 493 of file ilStudyProgrammeProgressCalculationsTest.php.
References add(), getRootPrg(), and ilStudyProgrammeProgress\STATUS_IN_PROGRESS.
ilStudyProgrammeProgressCalculationsTest::testDontFailByDeadlineIfSucceeded | ( | ) |
Definition at line 418 of file ilStudyProgrammeProgressCalculationsTest.php.
References getRootPrg(), and ilStudyProgrammeProgress\STATUS_COMPLETED.
ilStudyProgrammeProgressCalculationsTest::testDontFailByFutureDeadline | ( | ) |
Definition at line 404 of file ilStudyProgrammeProgressCalculationsTest.php.
References add(), getRootPrg(), and ilStudyProgrammeProgress\STATUS_IN_PROGRESS.
ilStudyProgrammeProgressCalculationsTest::testFailByDeadline | ( | ) |
Definition at line 391 of file ilStudyProgrammeProgressCalculationsTest.php.
References getRootPrg(), and ilStudyProgrammeProgress\STATUS_FAILED.
ilStudyProgrammeProgressCalculationsTest::testInternalRunIntegrity | ( | ) |
Definition at line 112 of file ilStudyProgrammeProgressCalculationsTest.php.
References ilStudyProgrammeProgress\STATUS_IN_PROGRESS.
ilStudyProgrammeProgressCalculationsTest::testInternalTreeIntegrity | ( | ) |
Definition at line 86 of file ilStudyProgrammeProgressCalculationsTest.php.
References getRootPrg(), ilStudyProgrammeProgress\STATUS_FAILED, and ilStudyProgrammeProgress\STATUS_IN_PROGRESS.
ilStudyProgrammeProgressCalculationsTest::testMarkAccreditedOnLPNode | ( | ) |
── 1 (10) ├── 11 (5, LP) └── 12 (5)
Definition at line 267 of file ilStudyProgrammeProgressCalculationsTest.php.
References getRootPrg(), ilStudyProgrammeSettings\MODE_LP_COMPLETED, setModeForNode(), setPointsForNode(), ilStudyProgrammeProgress\STATUS_ACCREDITED, ilStudyProgrammeProgress\STATUS_COMPLETED, and ilStudyProgrammeProgress\STATUS_IN_PROGRESS.
ilStudyProgrammeProgressCalculationsTest::testMarkAccreditedShouldCompleteParentBySufficientPoints | ( | ) |
PRG: MODE_POINTS ── 1 (5) ├── 11 (12) │ ├── 111 (5) │ └── 112 (7) ├── 12 (2) └── 13 (2)
Definition at line 228 of file ilStudyProgrammeProgressCalculationsTest.php.
References getRootPrg(), setPointsForNode(), ilStudyProgrammeProgress\STATUS_ACCREDITED, and ilStudyProgrammeProgress\STATUS_COMPLETED.
ilStudyProgrammeProgressCalculationsTest::testMarkAccreditedShouldNotChangeIrrelevantParent | ( | ) |
── 1 ├── 11 (irrelevant) │ ├── 111 │ └── 112 ├── 12 └── 13
Definition at line 302 of file ilStudyProgrammeProgressCalculationsTest.php.
References getRootPrg(), ilStudyProgrammeProgress\STATUS_ACCREDITED, ilStudyProgrammeProgress\STATUS_IN_PROGRESS, and ilStudyProgrammeProgress\STATUS_NOT_RELEVANT.
ilStudyProgrammeProgressCalculationsTest::testMarkAsIndividual | ( | ) |
Definition at line 504 of file ilStudyProgrammeProgressCalculationsTest.php.
References add(), and getRootPrg().
ilStudyProgrammeProgressCalculationsTest::testMarkIrrelevantDoesNotCompleteParent | ( | ) |
Definition at line 375 of file ilStudyProgrammeProgressCalculationsTest.php.
References getRootPrg(), setPointsForNode(), and ilStudyProgrammeProgress\STATUS_IN_PROGRESS.
ilStudyProgrammeProgressCalculationsTest::testMarkRelevantShouldRecalculateStatusAndPoints | ( | ) |
Definition at line 317 of file ilStudyProgrammeProgressCalculationsTest.php.
References getRootPrg(), ilStudyProgrammeProgress\STATUS_ACCREDITED, ilStudyProgrammeProgress\STATUS_COMPLETED, and ilStudyProgrammeProgress\STATUS_NOT_RELEVANT.
ilStudyProgrammeProgressCalculationsTest::testParentAcquisition | ( | ) |
── 1 ├── 11 │ ├── 111 │ └── 112 ├── 12 └── 13
Definition at line 127 of file ilStudyProgrammeProgressCalculationsTest.php.
References getRootPrg().
ilStudyProgrammeProgressCalculationsTest::testSuccessionCompletingParents | ( | ) |
Definition at line 345 of file ilStudyProgrammeProgressCalculationsTest.php.
References ilStudyProgrammeSettings\MODE_LP_COMPLETED, setModeForNode(), setPointsForNode(), and ilStudyProgrammeProgress\STATUS_COMPLETED.
ilStudyProgrammeProgressCalculationsTest::testTranstitionToProgressWithPastDeadline | ( | ) |
Definition at line 461 of file ilStudyProgrammeProgressCalculationsTest.php.
References getRootPrg(), ilStudyProgrammeProgress\STATUS_ACCREDITED, and ilStudyProgrammeProgress\STATUS_FAILED.
ilStudyProgrammeProgressCalculationsTest::testUpdateFromSettingsResetsIndividual | ( | ) |
Definition at line 520 of file ilStudyProgrammeProgressCalculationsTest.php.
References add(), and getRootPrg().
ilStudyProgrammeProgressCalculationsTest::testUpdatePlanFromSettings | ( | ) |
Definition at line 532 of file ilStudyProgrammeProgressCalculationsTest.php.
References add(), getRootPrg(), and ilStudyProgrammeAssessmentSettings\STATUS_ACTIVE.