19 declare(strict_types=1);
35 if (!defined(
'CLIENT_WEB_DIR')) {
36 define(
'CLIENT_WEB_DIR',
'my/client/web/dir');
45 '<xml> Some content </xml>',
52 '/some/where/background.jpg',
53 '/some/where/tile_image.jpg',
59 $userCertificateRepository = $this->getMockBuilder(ilUserCertificateRepository::class)
60 ->disableOriginalConstructor()
64 $userCertificateRepository->method(
'fetchCertificate')
65 ->willReturn($certificate)
68 $rpcHelper = $this->getMockBuilder(ilCertificateRpcClientFactoryHelper::class)
74 $rpcHelper->method(
'ilFO2PDF')
78 $pdfFileNameFactory = $this->getMockBuilder(ilCertificatePdfFileNameFactory::class)
79 ->disableOriginalConstructor()
83 $language = $this->getMockBuilder(ilLanguage::class)
84 ->disableOriginalConstructor()
88 $irss = $this->getMockBuilder(IRSS::class)
89 ->disableOriginalConstructor()
93 $filesystem = $this->getMockBuilder(Filesystem::class)
94 ->disableOriginalConstructor()
98 $userCertificateRepository,
106 $pdfGenerator->generate(100);
114 if (!defined(
'CLIENT_WEB_DIR')) {
115 define(
'CLIENT_WEB_DIR',
'my/client/web/dir');
124 '<xml> Some content </xml>',
131 '/some/where/background.jpg',
132 '/some/where/tile_image.jpg',
138 $userCertificateRepository = $this->getMockBuilder(ilUserCertificateRepository::class)
139 ->disableOriginalConstructor()
143 $userCertificateRepository->method(
'fetchActiveCertificate')
144 ->willReturn($certificate)
147 $rpcHelper = $this->getMockBuilder(ilCertificateRpcClientFactoryHelper::class)
153 $rpcHelper->method(
'ilFO2PDF')
157 $pdfFileNameFactory = $this->getMockBuilder(ilCertificatePdfFileNameFactory::class)
158 ->disableOriginalConstructor()
162 $language = $this->getMockBuilder(ilLanguage::class)
163 ->disableOriginalConstructor()
167 $irss = $this->getMockBuilder(IRSS::class)
168 ->disableOriginalConstructor()
172 $filesystem = $this->getMockBuilder(Filesystem::class)
173 ->disableOriginalConstructor()
177 $userCertificateRepository,
185 $pdfGenerator->generateCurrentActiveCertificate(100, 200);
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
testGenerateSpecificCertificate()
Class ilCertificateBaseTestCase.
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
testGenerateCurrentActiveCertificate()