ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
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 ()
 
 setGlobalVariable (string $name, $value)
 
- Protected Attributes inherited from ilCertificateBaseTestCase
Container $dic
 

Detailed Description

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

Definition at line 24 of file ilCertificateTemplateTest.php.

Member Function Documentation

◆ testCreateCertificateTemplate()

ilCertificateTemplateTest::testCreateCertificateTemplate ( )

Definition at line 26 of file ilCertificateTemplateTest.php.

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

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