◆ setUp()
ILIAS\Tests\Setup\Objective\ObjectiveWithPreconditionsTest::setUp |
( |
| ) |
|
Definition at line 38 of file ObjectiveWithPreconditionsTest.php.
40 $this->objective = $this->newObjective();
41 $this->precondition = $this->newObjective();
43 $this->with_precondition =
new Objective\ObjectiveWithPreconditions(
◆ testAchieve()
ILIAS\Tests\Setup\Objective\ObjectiveWithPreconditionsTest::testAchieve |
( |
| ) |
|
Definition at line 97 of file ObjectiveWithPreconditionsTest.php.
References $res.
99 $env = $this->createMock(Setup\Environment::class);
102 ->expects($this->once())
107 $res = $this->with_precondition->achieve($env);
108 $this->assertSame($env,
$res);
◆ testGetHash()
ILIAS\Tests\Setup\Objective\ObjectiveWithPreconditionsTest::testGetHash |
( |
| ) |
|
Definition at line 49 of file ObjectiveWithPreconditionsTest.php.
51 $hash = $this->with_precondition->getHash();
52 $this->assertNotEquals($this->objective->getHash(), $hash);
53 $this->assertNotEquals($this->precondition->getHash(), $hash);
◆ testGetLabel()
ILIAS\Tests\Setup\Objective\ObjectiveWithPreconditionsTest::testGetLabel |
( |
| ) |
|
Definition at line 56 of file ObjectiveWithPreconditionsTest.php.
58 $label =
"some_label";
61 ->expects($this->once())
65 $this->assertEquals($label, $this->with_precondition->getLabel());
◆ testGetPreconditions()
ILIAS\Tests\Setup\Objective\ObjectiveWithPreconditionsTest::testGetPreconditions |
( |
| ) |
|
Definition at line 80 of file ObjectiveWithPreconditionsTest.php.
82 $another = $this->newObjective();
84 $env = $this->createMock(Setup\Environment::class);
87 ->expects($this->once())
88 ->method(
"getPreconditions")
90 ->willReturn([$another]);
92 $pre = $this->with_precondition->getPreconditions($env);
93 $this->assertEquals([$this->precondition, $another], $pre);
◆ testIsNotable()
ILIAS\Tests\Setup\Objective\ObjectiveWithPreconditionsTest::testIsNotable |
( |
| ) |
|
Definition at line 68 of file ObjectiveWithPreconditionsTest.php.
73 ->expects($this->once())
75 ->willReturn($notable);
77 $this->assertEquals($notable, $this->with_precondition->isNotable());
◆ $objective
Setup Objective ILIAS\Tests\Setup\Objective\ObjectiveWithPreconditionsTest::$objective |
|
protected |
◆ $precondition
Setup Objective ILIAS\Tests\Setup\Objective\ObjectiveWithPreconditionsTest::$precondition |
|
protected |
◆ $with_precondition
The documentation for this class was generated from the following file: