11 $object = $this->getMockBuilder(
'ilObject')
12 ->disableOriginalConstructor()
16 ->expects($this->atLeastOnce())
20 $language = $this->getMockBuilder(
'ilLanguage')
21 ->disableOriginalConstructor()
24 $controller = $this->getMockBuilder(
'ilCtrl')
25 ->disableOriginalConstructor()
28 $access = $this->getMockBuilder(
'ilAccess')
29 ->disableOriginalConstructor()
32 $toolbar = $this->getMockBuilder(
'ilToolbarGUI')
33 ->disableOriginalConstructor()
36 $placeholderDescriptionObject = $this->getMockBuilder(
'ilCertificatePlaceholderDescription')
37 ->disableOriginalConstructor()
40 $leaningProgressObject = $this->getMockBuilder(
'ilObjectLP')
41 ->disableOriginalConstructor()
44 $settingsFormFactory = $this->getMockBuilder(
'ilCertificateSettingsFormRepository')
45 ->disableOriginalConstructor()
48 $trackingHelper = $this->getMockBuilder(
'ilCertificateObjUserTrackingHelper')
49 ->disableOriginalConstructor()
52 $objectHelper = $this->getMockBuilder(
'ilCertificateObjectHelper')
53 ->disableOriginalConstructor()
56 $lpHelper = $this->getMockBuilder(
'ilCertificateObjectLPHelper')
57 ->disableOriginalConstructor()
60 $lpMock = $this->getMockBuilder(
'ilObjectLP')
61 ->disableOriginalConstructor()
64 $lpMock->method(
'getCurrentMode')
67 $lpHelper->method(
'getInstance')->willReturn($lpMock);
69 $tree = $this->getMockBuilder(
'ilTree')
70 ->disableOriginalConstructor()
73 $setting = $this->getMockBuilder(
'ilSetting')
74 ->disableOriginalConstructor()
78 ->expects($this->atLeastOnce())
89 $placeholderDescriptionObject,
90 $leaningProgressObject,
99 $repository->save(array(
'subitems' => array(1, 2, 3)));
104 $object = $this->getMockBuilder(
'ilObject')
105 ->disableOriginalConstructor()
109 ->expects($this->atLeastOnce())
113 $language = $this->getMockBuilder(
'ilLanguage')
114 ->disableOriginalConstructor()
117 $controller = $this->getMockBuilder(
'ilCtrl')
118 ->disableOriginalConstructor()
121 $access = $this->getMockBuilder(
'ilAccess')
122 ->disableOriginalConstructor()
125 $toolbar = $this->getMockBuilder(
'ilToolbarGUI')
126 ->disableOriginalConstructor()
129 $placeholderDescriptionObject = $this->getMockBuilder(
'ilCertificatePlaceholderDescription')
130 ->disableOriginalConstructor()
133 $leaningProgressObject = $this->getMockBuilder(
'ilObjectLP')
134 ->disableOriginalConstructor()
137 $settingsFormFactory = $this->getMockBuilder(
'ilCertificateSettingsFormRepository')
138 ->disableOriginalConstructor()
142 ->expects($this->atLeastOnce())
143 ->method(
'fetchFormFieldData')
146 'subitems' => array(),
147 'something_else' =>
'something' 151 $trackingHelper = $this->getMockBuilder(
'ilCertificateObjUserTrackingHelper')
152 ->disableOriginalConstructor()
155 $objectHelper = $this->getMockBuilder(
'ilCertificateObjectHelper')
156 ->disableOriginalConstructor()
159 $lpHelper = $this->getMockBuilder(
'ilCertificateObjectLPHelper')
160 ->disableOriginalConstructor()
163 $tree = $this->getMockBuilder(
'ilTree')
164 ->disableOriginalConstructor()
167 $setting = $this->getMockBuilder(
'ilSetting')
168 ->disableOriginalConstructor()
172 ->expects($this->atLeastOnce())
174 ->willReturn(
'[1, 2, 3]');
184 $placeholderDescriptionObject,
185 $leaningProgressObject,
186 $settingsFormFactory,
194 $result = $repository->fetchFormFieldData(
'Some Content');
198 'subitems' => array(1, 2, 3),
199 'something_else' =>
'something'
Class ilCertificateBaseTestCase.