ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilDerivedTaskTest.php
Go to the documentation of this file.
1<?php
18require_once __DIR__ . '/bootstrap.php';
19
24{
25 public function testTitle(): void
26 {
27 $task = new ilDerivedTask("title", 99, 1234, 1000, 0);
28
29 $this->assertEquals('title', $task->getTitle());
30 }
31
32 public function testRefId(): void
33 {
34 $task = new ilDerivedTask("title", 99, 1234, 1000, 0);
35
36 $this->assertEquals(99, $task->getRefId());
37 }
38
39 public function testDeadline(): void
40 {
41 $task = new ilDerivedTask("title", 99, 1234, 1000, 0);
42
43 $this->assertEquals(1234, $task->getDeadline());
44 }
45
46 public function testStartingTime(): void
47 {
48 $task = new ilDerivedTask("title", 99, 1234, 1000, 0);
49
50 $this->assertEquals(1000, $task->getStartingTime());
51 }
52
53 public function testWspId(): void
54 {
55 $task = new ilDerivedTask("title", 99, 1234, 1000, 0);
56
57 $this->assertEquals(0, $task->getWspId());
58 }
59}
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.