11 $templateRepository = $this->getMockBuilder(
'ilCertificateTemplateRepository')
12 ->disableOriginalConstructor()
15 $templateRepository->method(
'fetchCurrentlyActiveCertificate')
19 '<xml> Some Content </xml>',
20 md5(
'<xml> Some Content </xml>'),
26 '/some/where/background.jpg',
30 $filesystem = $this->getMockBuilder(
'ILIAS\Filesystem\Filesystem')
34 ->expects($this->
once())
35 ->method(
'createDir');
38 ->expects($this->
once())
42 ->expects($this->
once())
43 ->method(
'deleteDir');
46 ->expects($this->
once())
49 $objectHelper = $this->getMockBuilder(
'ilCertificateObjectHelper')
52 $objectHelper->method(
'lookupType')
55 $utilHelper = $this->getMockBuilder(
'ilCertificateUtilHelper')
59 ->expects($this->
once())
63 ->expects($this->
once())
64 ->method(
'deliverFile');
68 '/some/where/background.jpg',
75 $action->export(
'some/where/root',
'phpunit');
once($eventName, callable $callBack, $priority=100)
Subscribe to an event exactly once.