◆ setUp()
ilCertificateTypeClassMapTest::setUp |
( |
| ) |
|
|
protected |
◆ testFetchCoursePlaceHolderClass()
ilCertificateTypeClassMapTest::testFetchCoursePlaceHolderClass |
( |
| ) |
|
Definition at line 35 of file ilCertificateTypeClassMapTest.php.
35 : void
36 {
37 $class = $this->classMap->getPlaceHolderClassNameByType('crs');
38
39 $this->assertSame(CoursePlaceholderValues::class, $class);
40 }
◆ testFetchExercisePlaceHolderClass()
ilCertificateTypeClassMapTest::testFetchExercisePlaceHolderClass |
( |
| ) |
|
Definition at line 49 of file ilCertificateTypeClassMapTest.php.
49 : void
50 {
51 $class = $this->classMap->getPlaceHolderClassNameByType('exc');
52
53 $this->assertSame(ExercisePlaceholderValues::class, $class);
54 }
◆ testFetchScormPlaceHolderClass()
ilCertificateTypeClassMapTest::testFetchScormPlaceHolderClass |
( |
| ) |
|
Definition at line 56 of file ilCertificateTypeClassMapTest.php.
56 : void
57 {
58 $class = $this->classMap->getPlaceHolderClassNameByType('sahs');
59
60 $this->assertSame(ilScormPlaceholderValues::class, $class);
61 }
◆ testFetchTestPlaceHolderClass()
ilCertificateTypeClassMapTest::testFetchTestPlaceHolderClass |
( |
| ) |
|
Definition at line 42 of file ilCertificateTypeClassMapTest.php.
42 : void
43 {
44 $class = $this->classMap->getPlaceHolderClassNameByType('tst');
45
46 $this->assertSame(TestPlaceholderValues::class, $class);
47 }
◆ testFetchUnknownClassWillResultInException()
ilCertificateTypeClassMapTest::testFetchUnknownClassWillResultInException |
( |
| ) |
|
Definition at line 63 of file ilCertificateTypeClassMapTest.php.
63 : never
64 {
65 $this->expectException(ilException::class);
66
67 $this->classMap->getPlaceHolderClassNameByType('something');
68
69 $this->fail('Should never happen. No Exception thrown?');
70 }
◆ testIsCourseExisting()
ilCertificateTypeClassMapTest::testIsCourseExisting |
( |
| ) |
|
◆ testIsExerciseExisting()
ilCertificateTypeClassMapTest::testIsExerciseExisting |
( |
| ) |
|
◆ testIsTestExisting()
ilCertificateTypeClassMapTest::testIsTestExisting |
( |
| ) |
|
◆ testUnknownTypeIsNotExisting()
ilCertificateTypeClassMapTest::testUnknownTypeIsNotExisting |
( |
| ) |
|
Definition at line 93 of file ilCertificateTypeClassMapTest.php.
93 : void
94 {
95 $result = $this->classMap->typeExistsInMap('something');
96
97 $this->assertFalse($result);
98 }
◆ $classMap
The documentation for this class was generated from the following file: