ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
ilCertificateTypeClassMapTest Class Reference
+ Inheritance diagram for ilCertificateTypeClassMapTest:
+ Collaboration diagram for ilCertificateTypeClassMapTest:

Public Member Functions

 setUp ()
 
 testFetchCoursePlaceHolderClass ()
 
 testFetchTestPlaceHolderClass ()
 
 testFetchExercisePlaceHolderClass ()
 
 testFetchScormPlaceHolderClass ()
 
 testFetchUnknownClassWillResultInException ()
 
 testIsCourseExisting ()
 
 testIsTestExisting ()
 
 testIsExerciseExisting ()
 
 testUnknownTypeIsNotExisting ()
 

Private Attributes

 $classMap
 

Detailed Description

Member Function Documentation

◆ setUp()

ilCertificateTypeClassMapTest::setUp ( )

Definition at line 16 of file ilCertificateTypeClassMapTest.php.

16 : void
17 {
18 $this->classMap = new ilCertificateTypeClassMap();
19 }

◆ testFetchCoursePlaceHolderClass()

ilCertificateTypeClassMapTest::testFetchCoursePlaceHolderClass ( )

Definition at line 21 of file ilCertificateTypeClassMapTest.php.

22 {
23 $class = $this->classMap->getPlaceHolderClassNameByType('crs');
24
25 $this->assertEquals('ilCoursePlaceholderValues', $class);
26 }

◆ testFetchExercisePlaceHolderClass()

ilCertificateTypeClassMapTest::testFetchExercisePlaceHolderClass ( )

Definition at line 35 of file ilCertificateTypeClassMapTest.php.

36 {
37 $class = $this->classMap->getPlaceHolderClassNameByType('exc');
38
39 $this->assertEquals('ilExercisePlaceholderValues', $class);
40 }

◆ testFetchScormPlaceHolderClass()

ilCertificateTypeClassMapTest::testFetchScormPlaceHolderClass ( )

Definition at line 42 of file ilCertificateTypeClassMapTest.php.

43 {
44 $class = $this->classMap->getPlaceHolderClassNameByType('sahs');
45
46 $this->assertEquals('ilScormPlaceholderValues', $class);
47 }

◆ testFetchTestPlaceHolderClass()

ilCertificateTypeClassMapTest::testFetchTestPlaceHolderClass ( )

Definition at line 28 of file ilCertificateTypeClassMapTest.php.

29 {
30 $class = $this->classMap->getPlaceHolderClassNameByType('tst');
31
32 $this->assertEquals('ilTestPlaceholderValues', $class);
33 }

◆ testFetchUnknownClassWillResultInException()

ilCertificateTypeClassMapTest::testFetchUnknownClassWillResultInException ( )

Definition at line 52 of file ilCertificateTypeClassMapTest.php.

53 {
54 $this->expectException(\ilException::class);
55
56 $class = $this->classMap->getPlaceHolderClassNameByType('something');
57
58 $this->fail('Should never happen. No Exception thrown?');
59 }

◆ testIsCourseExisting()

ilCertificateTypeClassMapTest::testIsCourseExisting ( )

Definition at line 61 of file ilCertificateTypeClassMapTest.php.

62 {
63 $result = $this->classMap->typeExistsInMap('crs');
64
65 $this->assertTrue($result);
66 }
$result

References $result.

◆ testIsExerciseExisting()

ilCertificateTypeClassMapTest::testIsExerciseExisting ( )

Definition at line 75 of file ilCertificateTypeClassMapTest.php.

76 {
77 $result = $this->classMap->typeExistsInMap('exc');
78
79 $this->assertTrue($result);
80 }

References $result.

◆ testIsTestExisting()

ilCertificateTypeClassMapTest::testIsTestExisting ( )

Definition at line 68 of file ilCertificateTypeClassMapTest.php.

69 {
70 $result = $this->classMap->typeExistsInMap('tst');
71
72 $this->assertTrue($result);
73 }

References $result.

◆ testUnknownTypeIsNotExisting()

ilCertificateTypeClassMapTest::testUnknownTypeIsNotExisting ( )

Definition at line 82 of file ilCertificateTypeClassMapTest.php.

83 {
84 $result = $this->classMap->typeExistsInMap('something');
85
86 $this->assertFalse($result);
87 }

References $result.

Field Documentation

◆ $classMap

ilCertificateTypeClassMapTest::$classMap
private

Definition at line 14 of file ilCertificateTypeClassMapTest.php.


The documentation for this class was generated from the following file: