◆ setUp()
ILIAS\Tests\Setup\ExternalConditionObjectiveTest::setUp |
( |
| ) |
|
Definition at line 11 of file ExternalConditionObjectiveTest.php.
References Vendor\Package\$e.
13 $this->label_t =
"condition_true";
14 $this->t =
new Setup\ExternalConditionObjective(
16 function (Setup\Environment
$e) {
20 $this->label_f =
"condition_false";
21 $this->f =
new Setup\ExternalConditionObjective(
23 function (Setup\Environment $e) {
◆ testAchieveFalse()
ILIAS\Tests\Setup\ExternalConditionObjectiveTest::testAchieveFalse |
( |
| ) |
|
Definition at line 59 of file ExternalConditionObjectiveTest.php.
References $res.
61 $this->expectException(Setup\UnachievableException::class);
62 $env = $this->createMock(Setup\Environment::class);
63 $res = $this->f->achieve($env);
foreach($_POST as $key=> $value) $res
◆ testAchieveTrue()
ILIAS\Tests\Setup\ExternalConditionObjectiveTest::testAchieveTrue |
( |
| ) |
|
Definition at line 67 of file ExternalConditionObjectiveTest.php.
References $res.
69 $env = $this->createMock(Setup\Environment::class);
70 $res = $this->t->achieve($env);
71 $this->assertEquals($env,
$res);
foreach($_POST as $key=> $value) $res
◆ testGetHash()
ILIAS\Tests\Setup\ExternalConditionObjectiveTest::testGetHash |
( |
| ) |
|
◆ testGetLabel()
ILIAS\Tests\Setup\ExternalConditionObjectiveTest::testGetLabel |
( |
| ) |
|
Definition at line 39 of file ExternalConditionObjectiveTest.php.
41 $this->assertIsString($this->f->getLabel());
42 $this->assertEquals($this->label_f, $this->f->getLabel());
43 $this->assertEquals($this->label_t, $this->t->getLabel());
◆ testGetPreconditions()
ILIAS\Tests\Setup\ExternalConditionObjectiveTest::testGetPreconditions |
( |
| ) |
|
Definition at line 51 of file ExternalConditionObjectiveTest.php.
53 $env = $this->createMock(Setup\Environment::class);
55 $pre = $this->f->getPreconditions($env);
56 $this->assertEquals([], $pre);
◆ testHashIsDifferentForDifferentMessages()
ILIAS\Tests\Setup\ExternalConditionObjectiveTest::testHashIsDifferentForDifferentMessages |
( |
| ) |
|
◆ testIsNotable()
ILIAS\Tests\Setup\ExternalConditionObjectiveTest::testIsNotable |
( |
| ) |
|
The documentation for this class was generated from the following file: