19 declare(strict_types=1);
32 protected function setUp(): void
39 $class = $this->classMap->getPlaceHolderClassNameByType(
'crs');
41 $this->assertSame(CoursePlaceholderValues::class, $class);
46 $class = $this->classMap->getPlaceHolderClassNameByType(
'tst');
48 $this->assertSame(TestPlaceholderValues::class, $class);
53 $class = $this->classMap->getPlaceHolderClassNameByType(
'exc');
55 $this->assertSame(ExercisePlaceholderValues::class, $class);
60 $class = $this->classMap->getPlaceHolderClassNameByType(
'sahs');
62 $this->assertSame(ilScormPlaceholderValues::class, $class);
67 $this->expectException(ilException::class);
69 $this->classMap->getPlaceHolderClassNameByType(
'something');
71 $this->fail(
'Should never happen. No Exception thrown?');
76 $result = $this->classMap->typeExistsInMap(
'crs');
78 $this->assertTrue($result);
83 $result = $this->classMap->typeExistsInMap(
'tst');
85 $this->assertTrue($result);
90 $result = $this->classMap->typeExistsInMap(
'exc');
92 $this->assertTrue($result);
97 $result = $this->classMap->typeExistsInMap(
'something');
99 $this->assertFalse($result);
testFetchTestPlaceHolderClass()
Class ilCertificateBaseTestCase.
testFetchScormPlaceHolderClass()
testFetchExercisePlaceHolderClass()
testFetchCoursePlaceHolderClass()
ilCertificateTypeClassMap $classMap
testFetchUnknownClassWillResultInException()
testUnknownTypeIsNotExisting()