ILIAS  trunk Revision v12.0_alpha-377-g3641b37b9db
ilDerivedTaskTest.php
Go to the documentation of this file.
1<?php
2
19require_once __DIR__ . '/bootstrap.php';
20
25{
26 public function testTitle(): void
27 {
28 $task = new ilDerivedTask("title", 99, 1234, 1000, 0);
29
30 $this->assertEquals('title', $task->getTitle());
31 }
32
33 public function testRefId(): void
34 {
35 $task = new ilDerivedTask("title", 99, 1234, 1000, 0);
36
37 $this->assertEquals(99, $task->getRefId());
38 }
39
40 public function testDeadline(): void
41 {
42 $task = new ilDerivedTask("title", 99, 1234, 1000, 0);
43
44 $this->assertEquals(1234, $task->getDeadline());
45 }
46
47 public function testStartingTime(): void
48 {
49 $task = new ilDerivedTask("title", 99, 1234, 1000, 0);
50
51 $this->assertEquals(1000, $task->getStartingTime());
52 }
53
54 public function testWspId(): void
55 {
56 $task = new ilDerivedTask("title", 99, 1234, 1000, 0);
57
58 $this->assertEquals(0, $task->getWspId());
59 }
60}
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Base test class for tasks tests.