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

Public Member Functions

 testGetDescription ()
 
 testCreate ()
 

Protected Member Functions

 setUp ()
 

Private Attributes

ObjectiveConstructor $testObj
 
ObjectiveCollection $objectiveCollection
 
Closure $closure
 

Detailed Description

Definition at line 32 of file ObjectiveConstructorTest.php.

Member Function Documentation

◆ setUp()

ILIAS\Tests\Setup\ObjectiveConstructorTest::setUp ( )
protected

Definition at line 38 of file ObjectiveConstructorTest.php.

References ILIAS\Tests\Setup\ObjectiveConstructorTest\$objectiveCollection.

38  : void
39  {
40  parent::setUp();
41  $this->objectiveCollection = new ObjectiveCollection(
42  "",
43  false,
44  new NullObjective()
45  );
46 
47  $this->closure = function (): ObjectiveCollection {
49  };
50 
51  $this->testObj = new ObjectiveConstructor(
52  "My description",
53  $this->closure
54  );
55  }

◆ testCreate()

ILIAS\Tests\Setup\ObjectiveConstructorTest::testCreate ( )

Definition at line 65 of file ObjectiveConstructorTest.php.

65  : void
66  {
67  $this->assertEquals($this->objectiveCollection, $this->testObj->create());
68  }

◆ testGetDescription()

ILIAS\Tests\Setup\ObjectiveConstructorTest::testGetDescription ( )

Definition at line 57 of file ObjectiveConstructorTest.php.

57  : void
58  {
59  $this->assertEquals(
60  "My description",
61  $this->testObj->getDescription()
62  );
63  }

Field Documentation

◆ $closure

Closure ILIAS\Tests\Setup\ObjectiveConstructorTest::$closure
private

Definition at line 36 of file ObjectiveConstructorTest.php.

◆ $objectiveCollection

ObjectiveCollection ILIAS\Tests\Setup\ObjectiveConstructorTest::$objectiveCollection
private

◆ $testObj

ObjectiveConstructor ILIAS\Tests\Setup\ObjectiveConstructorTest::$testObj
private

Definition at line 34 of file ObjectiveConstructorTest.php.


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