◆ setUp()
ILIAS\Tests\Setup\ObjectiveWithPreconditionsTest::setUp |
( |
| ) |
|
Definition at line 13 of file ObjectiveWithPreconditionsTest.php.
15 $this->objective = $this->newObjective();
16 $this->precondition = $this->newObjective();
18 $this->with_precondition =
new Setup\ObjectiveWithPreconditions(
◆ testAchieve()
ILIAS\Tests\Setup\ObjectiveWithPreconditionsTest::testAchieve |
( |
| ) |
|
Definition at line 70 of file ObjectiveWithPreconditionsTest.php.
References $res.
72 $env = $this->createMock(Setup\Environment::class);
75 ->expects($this->once())
80 $res = $this->with_precondition->achieve($env);
81 $this->assertSame($env,
$res);
foreach($_POST as $key=> $value) $res
◆ testGetHash()
ILIAS\Tests\Setup\ObjectiveWithPreconditionsTest::testGetHash |
( |
| ) |
|
◆ testGetLabel()
ILIAS\Tests\Setup\ObjectiveWithPreconditionsTest::testGetLabel |
( |
| ) |
|
Definition at line 29 of file ObjectiveWithPreconditionsTest.php.
31 $label =
"some_label";
34 ->expects($this->once())
38 $this->assertEquals($label, $this->with_precondition->getLabel());
◆ testGetPreconditions()
ILIAS\Tests\Setup\ObjectiveWithPreconditionsTest::testGetPreconditions |
( |
| ) |
|
Definition at line 53 of file ObjectiveWithPreconditionsTest.php.
55 $another = $this->newObjective();
57 $env = $this->createMock(Setup\Environment::class);
60 ->expects($this->once())
61 ->method(
"getPreconditions")
63 ->willReturn([$another]);
65 $pre = $this->with_precondition->getPreconditions($env);
66 $this->assertEquals([$this->precondition, $another], $pre);
◆ testIsNotable()
ILIAS\Tests\Setup\ObjectiveWithPreconditionsTest::testIsNotable |
( |
| ) |
|
Definition at line 41 of file ObjectiveWithPreconditionsTest.php.
46 ->expects($this->once())
48 ->willReturn($notable);
50 $this->assertEquals($notable, $this->with_precondition->isNotable());
The documentation for this class was generated from the following file: