19 declare(strict_types=1);
37 '<xml>Some Content</xml>',
44 '/some/where/background.jpg',
45 '/some/where/tile_image.svg',
51 $this->assertSame(1, $userCertificate->getPatternCertificateId());
52 $this->assertSame(20, $userCertificate->getObjId());
53 $this->assertSame(
'crs', $userCertificate->getObjType());
54 $this->assertSame(400, $userCertificate->getUserId());
55 $this->assertSame(
'Niels Theen', $userCertificate->getUserName());
56 $this->assertSame(123_456_789, $userCertificate->getAcquiredTimestamp());
57 $this->assertSame(
'<xml>Some Content</xml>', $userCertificate->getCertificateContent());
58 $this->assertSame(
'[]', $userCertificate->getTemplateValues());
59 $this->assertEquals(0, $userCertificate->getValidUntil());
60 $this->assertSame(1, $userCertificate->getVersion());
61 $this->assertSame(
'v5.4.0', $userCertificate->getIliasVersion());
62 $this->assertTrue($userCertificate->isCurrentlyActive());
63 $this->assertSame(
'/some/where/background.jpg', $userCertificate->getCurrentBackgroundImageUsed());
64 $this->assertSame(140, $userCertificate->getId());
65 $this->assertSame(
'11111111-2222-3333-4444-555555555555', $userCertificate->getCertificateId()->asString());
Class ilCertificateBaseTestCase.
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
testCreateUserCertificate()