11 $object = $this->getMockBuilder(
'ilObject')
12 ->disableOriginalConstructor()
15 $language = $this->getMockBuilder(
'ilLanguage')
16 ->disableOriginalConstructor()
19 $template = $this->getMockBuilder(
'ilTemplate')
20 ->disableOriginalConstructor()
23 $controller = $this->getMockBuilder(
'ilCtrl')
24 ->disableOriginalConstructor()
27 $access = $this->getMockBuilder(
'ilAccess')
28 ->disableOriginalConstructor()
31 $toolbar = $this->getMockBuilder(
'ilToolbarGUI')
32 ->disableOriginalConstructor()
35 $placeholderDescriptionObject = $this->getMockBuilder(
'ilCertificatePlaceholderDescription')
36 ->disableOriginalConstructor()
39 $settingFormRepository = $this->getMockBuilder(
'ilCertificateSettingsFormRepository')
40 ->disableOriginalConstructor()
43 $setting = $this->getMockBuilder(
'ilSetting')
44 ->disableOriginalConstructor()
48 ->expects($this->exactly(2))
59 $placeholderDescriptionObject,
60 $settingFormRepository,
66 'certificate_enabled_scorm' =>
true,
67 'short_name' =>
'something' 74 $object = $this->getMockBuilder(
'ilObject')
75 ->disableOriginalConstructor()
78 $language = $this->getMockBuilder(
'ilLanguage')
79 ->disableOriginalConstructor()
82 $template = $this->getMockBuilder(
'ilTemplate')
83 ->disableOriginalConstructor()
86 $controller = $this->getMockBuilder(
'ilCtrl')
87 ->disableOriginalConstructor()
90 $access = $this->getMockBuilder(
'ilAccess')
91 ->disableOriginalConstructor()
94 $toolbar = $this->getMockBuilder(
'ilToolbarGUI')
95 ->disableOriginalConstructor()
98 $placeholderDescriptionObject = $this->getMockBuilder(
'ilCertificatePlaceholderDescription')
99 ->disableOriginalConstructor()
102 $settingFormRepository = $this->getMockBuilder(
'ilCertificateSettingsFormRepository')
103 ->disableOriginalConstructor()
106 $settingFormRepository
107 ->expects($this->
once())
108 ->method(
'fetchFormFieldData')
111 'certificate_enabled_scorm' =>
'',
116 $setting = $this->getMockBuilder(
'ilSetting')
117 ->disableOriginalConstructor()
121 ->expects($this->exactly(2))
123 ->willReturnOnConsecutiveCalls(
'something',
'somethingelse');
133 $placeholderDescriptionObject,
134 $settingFormRepository,
138 $result = $repository->fetchFormFieldData(
'Some Content');
142 'certificate_enabled_scorm' =>
'something',
143 'short_name' =>
'somethingelse'
once($eventName, callable $callBack, $priority=100)
Subscribe to an event exactly once.