◆ testCloneCertificate()
      
        
          | ilCertificateCloneActionTest::testCloneCertificate  | 
          ( | 
           | ) | 
           | 
        
      
 
Definition at line 26 of file ilCertificateCloneActionTest.php.
   28         $database = $this->createMock(ilDBInterface::class);
    31             ->expects($this->once())
    35             ->expects($this->once())
    36             ->method(
'fetchAssoc')
    37             ->willReturn([
'1' => 
'1']);
    40             ->expects($this->once())
    45         $templateRepository = $this->getMockBuilder(ilCertificateTemplateRepository::class)->getMock();
    47         $templateRepository->method(
'fetchCertificateTemplatesByObjId')
    53                         '<xml> Some Content </xml>',
    54                         md5(
'<xml> Some Content </xml>'),
    60                         '/some/where/background.jpg',
    61                         '/some/where/card_thumb.jpg',
    69                         '<xml> Some Content </xml>',
    70                         md5(
'<xml> Some Content </xml>'),
    76                         '/some/where/background.jpg',
    77                         '/some/where/card_thumb.jpg',
    85                         '<xml> Some Content </xml>',
    86                         md5(
'<xml> Some Content </xml>'),
    92                         '/certificates/default/background.jpg',
    93                         '/some/where/card_thumb.jpg',
   102             ->expects($this->exactly(3))
   105         $objectHelper = $this->getMockBuilder(ilCertificateObjectHelper::class)
   108         $objectHelper->method(
'lookupObjId')
   111         $global_certificate_settings = $this->getMockBuilder(ilObjCertificateSettings::class)
   112             ->disableOriginalConstructor()
   120             $global_certificate_settings
   123         $oldObject = $this->getMockBuilder(ilObject::class)
   124             ->disableOriginalConstructor()
   127         $oldObject->method(
'getType')
   130         $oldObject->method(
'getId')
   133         $newObject = $this->getMockBuilder(ilObject::class)
   134             ->disableOriginalConstructor()
   137         $newObject->method(
'getType')
   140         $newObject->method(
'getId')
   143         $cloneAction->cloneCertificate($oldObject, $newObject, 
'v5.4.0', 
'/some/web/dir');
 
 
 
 
The documentation for this class was generated from the following file: