ILIAS  trunk Revision v11.0_alpha-1702-gfd3ecb7f852
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilCertificateQueueEntryTest.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
25 {
26  public function testEntryCanBeInstantiated(): void
27  {
28  $timestamp = time();
29 
30  $queueEntry = new ilCertificateQueueEntry(
31  10,
32  500,
33  'SomeClass',
34  'SomeState',
35  1000,
36  $timestamp,
37  20
38  );
39 
40  $this->assertSame(20, $queueEntry->getId());
41  $this->assertSame(10, $queueEntry->getObjId());
42  $this->assertSame(500, $queueEntry->getUserId());
43  $this->assertSame(1000, $queueEntry->getTemplateId());
44  $this->assertSame('SomeClass', $queueEntry->getAdapterClass());
45  $this->assertSame('SomeState', $queueEntry->getState());
46  $this->assertSame($timestamp, $queueEntry->getStartedTimestamp());
47  }
48 }
Class ilCertificateBaseTestCase.
foreach($mandatory_scripts as $file) $timestamp
Definition: buildRTE.php:70