ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilCertificateTemplateTest Class Reference
+ Inheritance diagram for ilCertificateTemplateTest:
+ Collaboration diagram for ilCertificateTemplateTest:

Public Member Functions

 testCreateCertificateTemplate ()
 

Additional Inherited Members

- Protected Member Functions inherited from ilCertificateBaseTestCase
 setUp ()
 
 tearDown ()
 
 assertDoesNotThrow (callable $cb, string $message='')
 
 assertThrows (callable $cb, ?string $expected_class=null, ?string $expected_message=null)
 @template T of Throwable More...
 
 setGlobalVariable (string $name, mixed $value)
 
- Protected Attributes inherited from ilCertificateBaseTestCase
Container $dic
 

Detailed Description

Definition at line 21 of file ilCertificateTemplateTest.php.

Member Function Documentation

◆ testCreateCertificateTemplate()

ilCertificateTemplateTest::testCreateCertificateTemplate ( )

Definition at line 23 of file ilCertificateTemplateTest.php.

23 : void
24 {
25 $time = time();
26
27 $template = new ilCertificateTemplate(
28 100,
29 'crs',
30 '<xml>crs</xml>',
31 md5('<xml>crs</xml>'),
32 '[]',
33 1,
34 'v5.4.0',
35 $time,
36 true,
37 '/some/where/background.jpg',
38 '/some/where/tile_image.svg',
39 '-',
40 '-',
41 555
42 );
43
44 $this->assertSame(100, $template->getObjId());
45 $this->assertSame('crs', $template->getObjType());
46 $this->assertSame('<xml>crs</xml>', $template->getCertificateContent());
47 $this->assertSame(md5('<xml>crs</xml>'), $template->getCertificateHash());
48 $this->assertSame(1, $template->getVersion());
49 $this->assertSame('v5.4.0', $template->getIliasVersion());
50 $this->assertSame($time, $template->getCreatedTimestamp());
51 $this->assertTrue($template->isCurrentlyActive());
52 $this->assertSame('/some/where/background.jpg', $template->getCurrentBackgroundImageUsed());
53 $this->assertSame('/some/where/tile_image.svg', $template->getCurrentTileImageUsed());
54 $this->assertSame(555, $template->getId());
55 }

The documentation for this class was generated from the following file: