◆ testPlaceholderDescriptions()
ILIAS\Exercise\Certificate\ilExercisePlaceholderDescriptionTest::testPlaceholderDescriptions |
( |
| ) |
|
Definition at line 64 of file ilExercisePlaceholderDescriptionTest.php.
References null.
66 $languageMock = $this->getMockBuilder(ilLanguage::class)
67 ->disableOriginalConstructor()
68 ->onlyMethods([
'txt',
'loadLanguageModule'])
71 $languageMock->expects($this->exactly(22))
73 ->willReturn(
'Something translated');
75 $userDefinePlaceholderMock = $this->getMockBuilder(ilUserDefinedFieldsPlaceholderDescription::class)
76 ->disableOriginalConstructor()
79 $userDefinePlaceholderMock->method(
'createPlaceholderHtmlDescription')
82 $userDefinePlaceholderMock->method(
'getPlaceholderDescriptions')
85 $placeholderDescriptionObject =
new ExercisePlaceholderDescription(
null, $languageMock, $userDefinePlaceholderMock);
87 $placeHolders = $placeholderDescriptionObject->getPlaceholderDescriptions();
91 'CERTIFICATE_ID' =>
'Something translated',
92 'USER_LOGIN' =>
'Something translated',
93 'USER_FULLNAME' =>
'Something translated',
94 'USER_FIRSTNAME' =>
'Something translated',
95 'USER_LASTNAME' =>
'Something translated',
96 'USER_TITLE' =>
'Something translated',
97 'USER_SALUTATION' =>
'Something translated',
98 'USER_BIRTHDAY' =>
'Something translated',
99 'USER_INSTITUTION' =>
'Something translated',
100 'USER_DEPARTMENT' =>
'Something translated',
101 'USER_STREET' =>
'Something translated',
102 'USER_CITY' =>
'Something translated',
103 'USER_ZIPCODE' =>
'Something translated',
104 'USER_COUNTRY' =>
'Something translated',
105 'USER_MATRICULATION' =>
'Something translated',
106 'DATE' =>
'Something translated',
107 'DATETIME' =>
'Something translated',
108 'RESULT_PASSED' =>
'Something translated',
109 'RESULT_MARK' =>
'Something translated',
110 'EXERCISE_TITLE' =>
'Something translated',
111 'DATE_COMPLETED' =>
'Something translated',
112 'DATETIME_COMPLETED' =>
'Something translated' while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
◆ testPlaceholderGetHtmlDescription()
ILIAS\Exercise\Certificate\ilExercisePlaceholderDescriptionTest::testPlaceholderGetHtmlDescription |
( |
| ) |
|
Definition at line 33 of file ilExercisePlaceholderDescriptionTest.php.
References null.
35 $languageMock = $this->getMockBuilder(ilLanguage::class)
36 ->disableOriginalConstructor()
37 ->onlyMethods([
'txt',
'loadLanguageModule'])
40 $templateMock = $this->getMockBuilder(ilTemplate::class)
41 ->disableOriginalConstructor()
44 $userDefinePlaceholderMock = $this->getMockBuilder(ilUserDefinedFieldsPlaceholderDescription::class)
45 ->disableOriginalConstructor()
48 $userDefinePlaceholderMock->method(
'createPlaceholderHtmlDescription')
51 $userDefinePlaceholderMock->method(
'getPlaceholderDescriptions')
54 $templateMock->method(
'get')
57 $placeholderDescriptionObject =
new ExercisePlaceholderDescription(
null, $languageMock, $userDefinePlaceholderMock);
59 $html = $placeholderDescriptionObject->createPlaceholderHtmlDescription($templateMock);
61 $this->assertSame(
'', $html);
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
The documentation for this class was generated from the following file: