ILIAS  release_7 Revision v7.30-3-g800a261c036
ilDerivedTaskTest.php
Go to the documentation of this file.
1<?php
2/* Copyright (c) 1998-2019 ILIAS open source, Extended GPL, see docs/LICENSE */
3
4require_once __DIR__ . '/bootstrap.php';
5
10{
11 public function testTitle()
12 {
13 $task = new ilDerivedTask("title", 99, 1234, 1000, 0);
14
15 $this->assertEquals('title', $task->getTitle());
16 }
17
18 public function testRefId()
19 {
20 $task = new ilDerivedTask("title", 99, 1234, 1000, 0);
21
22 $this->assertEquals(99, $task->getRefId());
23 }
24
25 public function testDeadline()
26 {
27 $task = new ilDerivedTask("title", 99, 1234, 1000, 0);
28
29 $this->assertEquals(1234, $task->getDeadline());
30 }
31
32 public function testStartingTime()
33 {
34 $task = new ilDerivedTask("title", 99, 1234, 1000, 0);
35
36 $this->assertEquals(1000, $task->getStartingTime());
37 }
38
39 public function testWspId()
40 {
41 $task = new ilDerivedTask("title", 99, 1234, 1000, 0);
42
43 $this->assertEquals(0, $task->getWspId());
44 }
45}
An exception for terminatinating execution or to throw for unit testing.
Derived task data object.
Base test class for tasks tests.