11 $object = $this->getMockBuilder(
'ilObject')
12 ->disableOriginalConstructor()
16 ->expects($this->atLeastOnce())
20 $language = $this->getMockBuilder(
'ilLanguage')
21 ->disableOriginalConstructor()
24 $template = $this->getMockBuilder(
'ilTemplate')
25 ->disableOriginalConstructor()
28 $controller = $this->getMockBuilder(
'ilCtrl')
29 ->disableOriginalConstructor()
32 $access = $this->getMockBuilder(
'ilAccess')
33 ->disableOriginalConstructor()
36 $toolbar = $this->getMockBuilder(
'ilToolbarGUI')
37 ->disableOriginalConstructor()
40 $placeholderDescriptionObject = $this->getMockBuilder(
'ilCertificatePlaceholderDescription')
41 ->disableOriginalConstructor()
44 $leaningProgressObject = $this->getMockBuilder(
'ilObjectLP')
45 ->disableOriginalConstructor()
48 $settingsFormFactory = $this->getMockBuilder(
'ilCertificateSettingsFormRepository')
49 ->disableOriginalConstructor()
52 $trackingHelper = $this->getMockBuilder(
'ilCertificateObjUserTrackingHelper')
53 ->disableOriginalConstructor()
56 $objectHelper = $this->getMockBuilder(
'ilCertificateObjectHelper')
57 ->disableOriginalConstructor()
60 $lpHelper = $this->getMockBuilder(
'ilCertificateObjectLPHelper')
61 ->disableOriginalConstructor()
64 $lpMock = $this->getMockBuilder(
'ilObjectLP')
65 ->disableOriginalConstructor()
68 $lpMock->method(
'getCurrentMode')
71 $lpHelper->method(
'getInstance')->willReturn($lpMock);
73 $tree = $this->getMockBuilder(
'ilTree')
74 ->disableOriginalConstructor()
77 $setting = $this->getMockBuilder(
'ilSetting')
78 ->disableOriginalConstructor()
82 ->expects($this->atLeastOnce())
93 $placeholderDescriptionObject,
94 $leaningProgressObject,
103 $repository->save(array(
'subitems' => array(1, 2, 3)));
108 $object = $this->getMockBuilder(
'ilObject')
109 ->disableOriginalConstructor()
113 ->expects($this->atLeastOnce())
117 $language = $this->getMockBuilder(
'ilLanguage')
118 ->disableOriginalConstructor()
121 $template = $this->getMockBuilder(
'ilTemplate')
122 ->disableOriginalConstructor()
125 $controller = $this->getMockBuilder(
'ilCtrl')
126 ->disableOriginalConstructor()
129 $access = $this->getMockBuilder(
'ilAccess')
130 ->disableOriginalConstructor()
133 $toolbar = $this->getMockBuilder(
'ilToolbarGUI')
134 ->disableOriginalConstructor()
137 $placeholderDescriptionObject = $this->getMockBuilder(
'ilCertificatePlaceholderDescription')
138 ->disableOriginalConstructor()
141 $leaningProgressObject = $this->getMockBuilder(
'ilObjectLP')
142 ->disableOriginalConstructor()
145 $settingsFormFactory = $this->getMockBuilder(
'ilCertificateSettingsFormRepository')
146 ->disableOriginalConstructor()
150 ->expects($this->atLeastOnce())
151 ->method(
'fetchFormFieldData')
154 'subitems' => array(),
155 'something_else' =>
'something' 159 $trackingHelper = $this->getMockBuilder(
'ilCertificateObjUserTrackingHelper')
160 ->disableOriginalConstructor()
163 $objectHelper = $this->getMockBuilder(
'ilCertificateObjectHelper')
164 ->disableOriginalConstructor()
167 $lpHelper = $this->getMockBuilder(
'ilCertificateObjectLPHelper')
168 ->disableOriginalConstructor()
171 $tree = $this->getMockBuilder(
'ilTree')
172 ->disableOriginalConstructor()
175 $setting = $this->getMockBuilder(
'ilSetting')
176 ->disableOriginalConstructor()
180 ->expects($this->atLeastOnce())
182 ->willReturn(
'[1, 2, 3]');
192 $placeholderDescriptionObject,
193 $leaningProgressObject,
194 $settingsFormFactory,
202 $result = $repository->fetchFormFieldData(
'Some Content');
206 'subitems' => array(1, 2, 3),
207 'something_else' =>
'something'