ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilCertificateTypeClassMapTest Class Reference
+ Inheritance diagram for ilCertificateTypeClassMapTest:
+ Collaboration diagram for ilCertificateTypeClassMapTest:

Public Member Functions

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

Private Attributes

 $classMap
 

Detailed Description

Member Function Documentation

◆ setUp()

ilCertificateTypeClassMapTest::setUp ( )

Definition at line 16 of file ilCertificateTypeClassMapTest.php.

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 ( )

ilException

Definition at line 52 of file ilCertificateTypeClassMapTest.php.

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

◆ testIsCourseExisting()

ilCertificateTypeClassMapTest::testIsCourseExisting ( )

Definition at line 59 of file ilCertificateTypeClassMapTest.php.

References $result.

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

◆ testIsExerciseExisting()

ilCertificateTypeClassMapTest::testIsExerciseExisting ( )

Definition at line 73 of file ilCertificateTypeClassMapTest.php.

References $result.

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

◆ testIsTestExisting()

ilCertificateTypeClassMapTest::testIsTestExisting ( )

Definition at line 66 of file ilCertificateTypeClassMapTest.php.

References $result.

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

◆ testUnknownTypeIsNotExisting()

ilCertificateTypeClassMapTest::testUnknownTypeIsNotExisting ( )

Definition at line 80 of file ilCertificateTypeClassMapTest.php.

References $result.

81  {
82  $result = $this->classMap->typeExistsInMap('something');
83 
84  $this->assertFalse($result);
85  }
$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: