ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
ilCertificateQueueEntryTest.php
Go to the documentation of this file.
1<?php
2/* Copyright (c) 1998-2018 ILIAS open source, Extended GPL, see docs/LICENSE */
3
8{
9 public function testEntryCanBeInstantiated()
10 {
11 $timestamp = time();
12
13 $queueEntry = new ilCertificateQueueEntry(
14 10,
15 500,
16 'SomeClass',
17 'SomeState',
18 '1000',
20 20
21 );
22
23 $this->assertEquals(20, $queueEntry->getId());
24 $this->assertEquals(10, $queueEntry->getObjId());
25 $this->assertEquals(500, $queueEntry->getUserId());
26 $this->assertEquals(1000, $queueEntry->getTemplateId());
27 $this->assertEquals('SomeClass', $queueEntry->getAdapterClass());
28 $this->assertEquals('SomeState', $queueEntry->getState());
29 $this->assertEquals($timestamp, $queueEntry->getStartedTimestamp());
30 }
31}
foreach($mandatory_scripts as $file) $timestamp
Definition: buildRTE.php:81
An exception for terminatinating execution or to throw for unit testing.
Class ilCertificateBaseTestCase.