◆ setUp()
ilObjStudyProgrammeCertificateTest::setUp |
( |
| ) |
|
Definition at line 38 of file ilObjStudyProgrammeCertificateTest.php.
References ilPRGProgress\STATUS_COMPLETED, and ilPRGProgress\STATUS_IN_PROGRESS.
44 ->withProgressTree($pgs);
48 ->withProgressTree($pgs);
54 ->withProgressTree($pgs);
59 ->withProgressTree($pgs);
61 $this->assignments = [
62 $ass0, $ass1, $ass2, $ass3
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
A Progress is the status of a user on a single node of an assignment; it is unique by assignment_id:u...
Assignments are relations of users to a PRG; They hold progress-information for (sub-)nodes of the PR...
◆ testPRGCertificateLatestProgressNoAssignments()
ilObjStudyProgrammeCertificateTest::testPRGCertificateLatestProgressNoAssignments |
( |
| ) |
|
◆ testPRGCertificateLatestProgressUnsuccesfulAssignments()
ilObjStudyProgrammeCertificateTest::testPRGCertificateLatestProgressUnsuccesfulAssignments |
( |
| ) |
|
Definition at line 74 of file ilObjStudyProgrammeCertificateTest.php.
76 $assignments = [$this->assignments[1]];
77 $pgs = $this->placeholder_mock->getRelevantProgress($assignments);
78 $this->assertEquals($this->assignments[1]->getProgressTree(), $pgs);
◆ testPRGCertificateLatestProgressWithMixedAssignments()
ilObjStudyProgrammeCertificateTest::testPRGCertificateLatestProgressWithMixedAssignments |
( |
| ) |
|
Definition at line 92 of file ilObjStudyProgrammeCertificateTest.php.
94 $assignments = $this->assignments;
95 $pgs = $this->placeholder_mock->getRelevantProgress($assignments);
96 $this->assertEquals($this->assignments[3]->getProgressTree(), $pgs);
◆ testPRGCertificateLatestProgressWithOnlyLimitedAssignments()
ilObjStudyProgrammeCertificateTest::testPRGCertificateLatestProgressWithOnlyLimitedAssignments |
( |
| ) |
|
Definition at line 99 of file ilObjStudyProgrammeCertificateTest.php.
102 $this->assignments[0],
103 $this->assignments[2]
105 $pgs = $this->placeholder_mock->getRelevantProgress($assignments);
106 $this->assertEquals($this->assignments[0]->getProgressTree(), $pgs);
◆ testPRGCertificateLatestProgressWithOnlySuccessfulAssignments()
ilObjStudyProgrammeCertificateTest::testPRGCertificateLatestProgressWithOnlySuccessfulAssignments |
( |
| ) |
|
Definition at line 81 of file ilObjStudyProgrammeCertificateTest.php.
84 $this->assignments[0],
85 $this->assignments[2],
88 $pgs = $this->placeholder_mock->getRelevantProgress($assignments);
89 $this->assertEquals($this->assignments[3]->getProgressTree(), $pgs);
◆ $backupGlobals
ilObjStudyProgrammeCertificateTest::$backupGlobals = false |
|
protected |
◆ $placeholder_mock
The documentation for this class was generated from the following file: