Definition at line 26 of file NotConstraintTest.php.
◆ setUp()
| NotConstraintTest::setUp |
( |
| ) |
|
|
protected |
Definition at line 34 of file NotConstraintTest.php.
References ILIAS\Repository\lng(), and ILIAS\Repository\refinery().
37 $this->
lng = $this->createMock(
ILIAS\Language\Language::class);
42 $this->not_true = $this->
refinery->logical()->not($group->constraint(
49 $this->not_false = $this->
refinery->logical()->not($group->constraint(
Interface Observer Contains several chained tasks and infos about them.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
◆ testAccepts()
| NotConstraintTest::testAccepts |
( |
| ) |
|
◆ testCheckFails()
| NotConstraintTest::testCheckFails |
( |
| ) |
|
Definition at line 73 of file NotConstraintTest.php.
75 $this->expectException(UnexpectedValueException::class);
76 $this->not_true->check(null);
◆ testCheckSucceed()
| NotConstraintTest::testCheckSucceed |
( |
| ) |
|
◆ testNoProblemWith()
| NotConstraintTest::testNoProblemWith |
( |
| ) |
|
◆ testNotAccepts()
| NotConstraintTest::testNotAccepts |
( |
| ) |
|
◆ testProblemWith()
| NotConstraintTest::testProblemWith |
( |
| ) |
|
◆ testRestrictError()
| NotConstraintTest::testRestrictError |
( |
| ) |
|
Definition at line 111 of file NotConstraintTest.php.
References $res.
113 $error = $this->df->error(
"error");
115 $res = $this->not_false->applyTo($error);
116 $this->assertSame($error,
$res);
◆ testRestrictNotOk()
| NotConstraintTest::testRestrictNotOk |
( |
| ) |
|
Definition at line 103 of file NotConstraintTest.php.
References $res.
105 $not_ok = $this->df->ok(null);
107 $res = $this->not_true->applyTo($not_ok);
108 $this->assertFalse(
$res->isOk());
◆ testRestrictOk()
| NotConstraintTest::testRestrictOk |
( |
| ) |
|
Definition at line 95 of file NotConstraintTest.php.
References $res.
97 $ok = $this->df->ok(null);
99 $res = $this->not_false->applyTo($ok);
100 $this->assertTrue(
$res->isOk());
◆ testWithProblemBuilder()
| NotConstraintTest::testWithProblemBuilder |
( |
| ) |
|
Definition at line 119 of file NotConstraintTest.php.
121 $new_c = $this->not_true->withProblemBuilder(
static function ():
string {
122 return "This was a fault";
124 $this->assertEquals(
"This was a fault", $new_c->problemWith(null));
◆ $df
| DataFactory NotConstraintTest::$df |
|
private |
◆ $lng
| ILIAS Language Language NotConstraintTest::$lng |
|
private |
◆ $not_false
◆ $not_true
◆ $refinery
| Refinery NotConstraintTest::$refinery |
|
private |
The documentation for this class was generated from the following file: