ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilUserCertificateTest Class Reference
+ Inheritance diagram for ilUserCertificateTest:
+ Collaboration diagram for ilUserCertificateTest:

Public Member Functions

 testCreateUserCertificate ()
 

Detailed Description

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

Definition at line 7 of file ilUserCertificateTest.php.

Member Function Documentation

◆ testCreateUserCertificate()

ilUserCertificateTest::testCreateUserCertificate ( )

Definition at line 9 of file ilUserCertificateTest.php.

10  {
11  $userCertificate = new ilUserCertificate(
12  1,
13  20,
14  'crs',
15  400,
16  'Niels Theen',
17  123456789,
18  '<xml>Some Content</xml>',
19  '[]',
20  null,
21  '1',
22  'v5.4.0',
23  true,
24  '/some/where/background.jpg',
25  '/some/where/thumbnail.svg',
26  140
27  );
28 
29  $this->assertEquals(1, $userCertificate->getPatternCertificateId());
30  $this->assertEquals(20, $userCertificate->getObjId());
31  $this->assertEquals('crs', $userCertificate->getObjType());
32  $this->assertEquals(400, $userCertificate->getUserId());
33  $this->assertEquals('Niels Theen', $userCertificate->getUserName());
34  $this->assertEquals(123456789, $userCertificate->getAcquiredTimestamp());
35  $this->assertEquals('<xml>Some Content</xml>', $userCertificate->getCertificateContent());
36  $this->assertEquals('[]', $userCertificate->getTemplateValues());
37  $this->assertEquals(null, $userCertificate->getValidUntil());
38  $this->assertEquals(1, $userCertificate->getVersion());
39  $this->assertEquals('v5.4.0', $userCertificate->getIliasVersion());
40  $this->assertEquals(true, $userCertificate->isCurrentlyActive());
41  $this->assertEquals('/some/where/background.jpg', $userCertificate->getBackgroundImagePath());
42  $this->assertEquals(140, $userCertificate->getId());
43  }

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