ILIAS  trunk Revision v12.0_alpha-399-g579a087ced2
ilDerivedTaskTest Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Inheritance diagram for ilDerivedTaskTest:
+ Collaboration diagram for ilDerivedTaskTest:

Public Member Functions

 testTitle ()
 
 testRefId ()
 
 testDeadline ()
 
 testStartingTime ()
 
 testWspId ()
 
- Public Member Functions inherited from ilTasksTestBase
 getTaskServiceMock ()
 

Additional Inherited Members

- Protected Member Functions inherited from ilTasksTestBase
 setUp ()
 
- Protected Attributes inherited from ilTasksTestBase
bool $backupGlobals = false
 
 $_mock_user
 
 $_mock_lng
 
 $_mock_ui
 
 $_mock_access
 
 $_mock_task_service
 
 $_mock_dic
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning

Author
killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de

Definition at line 24 of file ilDerivedTaskTest.php.

Member Function Documentation

◆ testDeadline()

ilDerivedTaskTest::testDeadline ( )

Definition at line 40 of file ilDerivedTaskTest.php.

40 : void
41 {
42 $task = new ilDerivedTask("title", 99, 1234, 1000, 0);
43
44 $this->assertEquals(1234, $task->getDeadline());
45 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

◆ testRefId()

ilDerivedTaskTest::testRefId ( )

Definition at line 33 of file ilDerivedTaskTest.php.

33 : void
34 {
35 $task = new ilDerivedTask("title", 99, 1234, 1000, 0);
36
37 $this->assertEquals(99, $task->getRefId());
38 }

◆ testStartingTime()

ilDerivedTaskTest::testStartingTime ( )

Definition at line 47 of file ilDerivedTaskTest.php.

47 : void
48 {
49 $task = new ilDerivedTask("title", 99, 1234, 1000, 0);
50
51 $this->assertEquals(1000, $task->getStartingTime());
52 }

◆ testTitle()

ilDerivedTaskTest::testTitle ( )

Definition at line 26 of file ilDerivedTaskTest.php.

26 : void
27 {
28 $task = new ilDerivedTask("title", 99, 1234, 1000, 0);
29
30 $this->assertEquals('title', $task->getTitle());
31 }

◆ testWspId()

ilDerivedTaskTest::testWspId ( )

Definition at line 54 of file ilDerivedTaskTest.php.

54 : void
55 {
56 $task = new ilDerivedTask("title", 99, 1234, 1000, 0);
57
58 $this->assertEquals(0, $task->getWspId());
59 }

The documentation for this class was generated from the following file: