◆ setUp()
ILIAS\Tests\Setup\Condition\ExternalConditionObjectiveTest::setUp |
( |
| ) |
|
Definition at line 34 of file ExternalConditionObjectiveTest.php.
References Vendor\Package\$e.
36 $this->label_t =
"condition_true";
37 $this->t =
new Condition\ExternalConditionObjective(
39 function (Setup\Environment
$e) {
43 $this->label_f =
"condition_false";
44 $this->f =
new Condition\ExternalConditionObjective(
46 function (Setup\Environment $e) {
◆ testAchieveFalse()
ILIAS\Tests\Setup\Condition\ExternalConditionObjectiveTest::testAchieveFalse |
( |
| ) |
|
Definition at line 82 of file ExternalConditionObjectiveTest.php.
84 $this->expectException(Setup\UnachievableException::class);
85 $env = $this->createMock(Setup\Environment::class);
86 $this->f->achieve($env);
◆ testAchieveTrue()
ILIAS\Tests\Setup\Condition\ExternalConditionObjectiveTest::testAchieveTrue |
( |
| ) |
|
◆ testGetHash()
ILIAS\Tests\Setup\Condition\ExternalConditionObjectiveTest::testGetHash |
( |
| ) |
|
◆ testGetLabel()
ILIAS\Tests\Setup\Condition\ExternalConditionObjectiveTest::testGetLabel |
( |
| ) |
|
Definition at line 62 of file ExternalConditionObjectiveTest.php.
64 $this->assertIsString($this->f->getLabel());
65 $this->assertEquals($this->label_f, $this->f->getLabel());
66 $this->assertEquals($this->label_t, $this->t->getLabel());
◆ testGetPreconditions()
ILIAS\Tests\Setup\Condition\ExternalConditionObjectiveTest::testGetPreconditions |
( |
| ) |
|
Definition at line 74 of file ExternalConditionObjectiveTest.php.
76 $env = $this->createMock(Setup\Environment::class);
78 $pre = $this->f->getPreconditions($env);
79 $this->assertEquals([], $pre);
◆ testHashIsDifferentForDifferentMessages()
ILIAS\Tests\Setup\Condition\ExternalConditionObjectiveTest::testHashIsDifferentForDifferentMessages |
( |
| ) |
|
◆ testIsNotable()
ILIAS\Tests\Setup\Condition\ExternalConditionObjectiveTest::testIsNotable |
( |
| ) |
|
◆ testNotExecutable()
ILIAS\Tests\Setup\Condition\ExternalConditionObjectiveTest::testNotExecutable |
( |
| ) |
|
Definition at line 96 of file ExternalConditionObjectiveTest.php.
References Vendor\Package\$e, and null.
98 $env = $this->createMock(Setup\Environment::class);
100 $throws_not_executable =
new Condition\ExternalConditionObjective(
102 function (Setup\Environment
$e) {
109 $this->expectException(Setup\NotExecutableException::class);
110 $throws_not_executable->achieve($env);
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
◆ testUnachievable()
ILIAS\Tests\Setup\Condition\ExternalConditionObjectiveTest::testUnachievable |
( |
| ) |
|
Definition at line 113 of file ExternalConditionObjectiveTest.php.
References Vendor\Package\$e, and null.
115 $env = $this->createMock(Setup\Environment::class);
117 $throws_unachievable =
new Condition\ExternalConditionObjective(
119 function (Setup\Environment
$e) {
126 $this->expectException(Setup\UnachievableException::class);
127 $throws_unachievable->achieve($env);
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
◆ $f
◆ $label_f
string ILIAS\Tests\Setup\Condition\ExternalConditionObjectiveTest::$label_f |
|
protected |
◆ $label_t
string ILIAS\Tests\Setup\Condition\ExternalConditionObjectiveTest::$label_t |
|
protected |
◆ $t
The documentation for this class was generated from the following file: