◆ setUp()
ILIAS\Tests\Setup\ObjectiveConstructorTest::setUp |
( |
| ) |
|
|
protected |
Definition at line 38 of file ObjectiveConstructorTest.php.
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 }
ObjectiveCollection $objectiveCollection
References ILIAS\Tests\Setup\ObjectiveConstructorTest\$objectiveCollection.
◆ 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 }
◆ $closure
Closure ILIAS\Tests\Setup\ObjectiveConstructorTest::$closure |
|
private |
◆ $objectiveCollection
◆ $testObj
The documentation for this class was generated from the following file: