◆ testPlaceholderDescriptions()
ilTestPlaceholderDescriptionTest::testPlaceholderDescriptions |
( |
| ) |
|
Definition at line 39 of file ilTestPlaceholderDescriptionTest.php.
41 $languageMock = $this->getMockBuilder(
'ilLanguage')
42 ->disableOriginalConstructor()
43 ->setMethods(array(
'txt'))
46 $languageMock->expects($this->exactly(25))
48 ->willReturn(
'Something translated');
50 $userDefinePlaceholderMock = $this->getMockBuilder(
'ilUserDefinedFieldsPlaceholderDescription')
51 ->disableOriginalConstructor()
54 $userDefinePlaceholderMock->method(
'createPlaceholderHtmlDescription')
55 ->willReturn(array());
57 $userDefinePlaceholderMock->method(
'getPlaceholderDescriptions')
58 ->willReturn(array());
62 $placeHolders = $placeholderDescriptionObject->getPlaceholderDescriptions();
66 'USER_LOGIN' =>
'Something translated',
67 'USER_FULLNAME' =>
'Something translated',
68 'USER_FIRSTNAME' =>
'Something translated',
69 'USER_LASTNAME' =>
'Something translated',
70 'USER_TITLE' =>
'Something translated',
71 'USER_SALUTATION' =>
'Something translated',
72 'USER_BIRTHDAY' =>
'Something translated',
73 'USER_INSTITUTION' =>
'Something translated',
74 'USER_DEPARTMENT' =>
'Something translated',
75 'USER_STREET' =>
'Something translated',
76 'USER_CITY' =>
'Something translated',
77 'USER_ZIPCODE' =>
'Something translated',
78 'USER_COUNTRY' =>
'Something translated',
79 'USER_MATRICULATION' =>
'Something translated',
80 'DATE' =>
'Something translated',
81 'DATETIME' =>
'Something translated',
82 'RESULT_PASSED' =>
'Something translated',
83 'RESULT_POINTS' =>
'Something translated',
84 'RESULT_PERCENT' =>
'Something translated',
85 'MAX_POINTS' =>
'Something translated',
86 'RESULT_MARK_SHORT' =>
'Something translated',
87 'RESULT_MARK_LONG' =>
'Something translated',
88 'TEST_TITLE' =>
'Something translated',
89 'DATE_COMPLETED' =>
'Something translated',
90 'DATETIME_COMPLETED' =>
'Something translated'
◆ testPlaceholderGetHtmlDescription()
ilTestPlaceholderDescriptionTest::testPlaceholderGetHtmlDescription |
( |
| ) |
|
Definition at line 8 of file ilTestPlaceholderDescriptionTest.php.
References $html.
10 $languageMock = $this->getMockBuilder(
'ilLanguage')
11 ->disableOriginalConstructor()
12 ->setMethods(array(
'txt'))
15 $templateMock = $this->getMockBuilder(
'ilTemplate')
16 ->disableOriginalConstructor()
19 $templateMock->method(
'get')
22 $userDefinePlaceholderMock = $this->getMockBuilder(
'ilUserDefinedFieldsPlaceholderDescription')
23 ->disableOriginalConstructor()
26 $userDefinePlaceholderMock->method(
'createPlaceholderHtmlDescription')
27 ->willReturn(array());
29 $userDefinePlaceholderMock->method(
'getPlaceholderDescriptions')
30 ->willReturn(array());
34 $html = $placeholderDescriptionObject->createPlaceholderHtmlDescription($templateMock);
36 $this->assertEquals(
'',
$html);
The documentation for this class was generated from the following file: