ILIAS  release_7 Revision v7.30-3-g800a261c036
ilCertificateTemplateTest Class Reference
+ Inheritance diagram for ilCertificateTemplateTest:
+ Collaboration diagram for ilCertificateTemplateTest:

Public Member Functions

 testCreateCertificateTemplate ()
 

Detailed Description

Author
Niels Theen nthee.nosp@m.n@da.nosp@m.tabay.nosp@m..de

Definition at line 7 of file ilCertificateTemplateTest.php.

Member Function Documentation

◆ testCreateCertificateTemplate()

ilCertificateTemplateTest::testCreateCertificateTemplate ( )

Definition at line 9 of file ilCertificateTemplateTest.php.

10 {
11 $time = time();
12
13 $template = new ilCertificateTemplate(
14 100,
15 'crs',
16 '<xml>crs</xml>',
17 md5('<xml>crs</xml>'),
18 '[]',
19 '1',
20 'v5.4.0',
21 $time,
22 true,
23 '/some/where/background.jpg',
24 '/some/where/thumbnail.svg',
25 555
26 );
27
28 $this->assertEquals(100, $template->getObjId());
29 $this->assertEquals('crs', $template->getObjType());
30 $this->assertEquals('<xml>crs</xml>', $template->getCertificateContent());
31 $this->assertEquals(md5('<xml>crs</xml>'), $template->getCertificateHash());
32 $this->assertEquals('1', $template->getVersion());
33 $this->assertEquals('v5.4.0', $template->getIliasVersion());
34 $this->assertEquals($time, $template->getCreatedTimestamp());
35 $this->assertEquals(true, $template->isCurrentlyActive());
36 $this->assertEquals('/some/where/background.jpg', $template->getBackgroundImagePath());
37 $this->assertEquals(555, $template->getId());
38 }

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