23 : void
24 {
25 $time = time();
26
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 '-',
38 '-',
39 555
40 );
41
42 $this->assertSame(100, $template->getObjId());
43 $this->assertSame('crs', $template->getObjType());
44 $this->assertSame('<xml>crs</xml>', $template->getCertificateContent());
45 $this->assertSame(md5('<xml>crs</xml>'), $template->getCertificateHash());
46 $this->assertSame(1, $template->getVersion());
47 $this->assertSame('v5.4.0', $template->getIliasVersion());
48 $this->assertSame($time, $template->getCreatedTimestamp());
49 $this->assertTrue($template->isCurrentlyActive());
50 $this->assertSame('-', $template->getBackgroundImageIdentification());
51 $this->assertSame('-', $template->getTileImageIdentification());
52 $this->assertSame(555, $template->getId());
53 }