ILIAS  trunk Revision v11.0_alpha-1749-g1a06bdef097
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ILIAS\Tests\Setup\Objective\NullObjectiveTest Class Reference
+ Inheritance diagram for ILIAS\Tests\Setup\Objective\NullObjectiveTest:
+ Collaboration diagram for ILIAS\Tests\Setup\Objective\NullObjectiveTest:

Public Member Functions

 setUp ()
 
 testGetHash ()
 
 testGetLabel ()
 
 testIsNotable ()
 
 testGetPreconditions ()
 
 testAchieve ()
 

Protected Attributes

Objective NullObjective $o
 

Detailed Description

Definition at line 27 of file NullObjectiveTest.php.

Member Function Documentation

◆ setUp()

ILIAS\Tests\Setup\Objective\NullObjectiveTest::setUp ( )

Definition at line 31 of file NullObjectiveTest.php.

31  : void
32  {
33  $this->o = new Objective\NullObjective();
34  }

◆ testAchieve()

ILIAS\Tests\Setup\Objective\NullObjectiveTest::testAchieve ( )

Definition at line 59 of file NullObjectiveTest.php.

References $res.

59  : void
60  {
61  $env = $this->createMock(Setup\Environment::class);
62 
63  $res = $this->o->achieve($env);
64  $this->assertSame($env, $res);
65  }
$res
Definition: ltiservices.php:66

◆ testGetHash()

ILIAS\Tests\Setup\Objective\NullObjectiveTest::testGetHash ( )

Definition at line 36 of file NullObjectiveTest.php.

36  : void
37  {
38  $this->assertIsString($this->o->getHash());
39  }

◆ testGetLabel()

ILIAS\Tests\Setup\Objective\NullObjectiveTest::testGetLabel ( )

Definition at line 41 of file NullObjectiveTest.php.

41  : void
42  {
43  $this->assertEquals("Nothing to do.", $this->o->getLabel());
44  }

◆ testGetPreconditions()

ILIAS\Tests\Setup\Objective\NullObjectiveTest::testGetPreconditions ( )

Definition at line 51 of file NullObjectiveTest.php.

51  : void
52  {
53  $env = $this->createMock(Setup\Environment::class);
54 
55  $pre = $this->o->getPreconditions($env);
56  $this->assertEquals([], $pre);
57  }

◆ testIsNotable()

ILIAS\Tests\Setup\Objective\NullObjectiveTest::testIsNotable ( )

Definition at line 46 of file NullObjectiveTest.php.

46  : void
47  {
48  $this->assertFalse($this->o->isNotable());
49  }

Field Documentation

◆ $o

Objective NullObjective ILIAS\Tests\Setup\Objective\NullObjectiveTest::$o
protected

Definition at line 29 of file NullObjectiveTest.php.


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