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 |
( |
| ) |
|
Definition at line 57 of file NotConstraintTest.php.
References null.
59 $this->assertTrue($this->not_false->accepts(
null));
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
◆ testCheckFails()
NotConstraintTest::testCheckFails |
( |
| ) |
|
Definition at line 73 of file NotConstraintTest.php.
References null.
75 $this->expectException(UnexpectedValueException::class);
76 $this->not_true->check(
null);
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
◆ testCheckSucceed()
NotConstraintTest::testCheckSucceed |
( |
| ) |
|
Definition at line 67 of file NotConstraintTest.php.
References null.
69 $this->not_false->check(
null);
70 $this->assertTrue(
true);
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
◆ testNoProblemWith()
NotConstraintTest::testNoProblemWith |
( |
| ) |
|
Definition at line 79 of file NotConstraintTest.php.
References null.
81 $this->assertNull($this->not_false->problemWith(
null));
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
◆ testNotAccepts()
NotConstraintTest::testNotAccepts |
( |
| ) |
|
Definition at line 62 of file NotConstraintTest.php.
References null.
64 $this->assertFalse($this->not_true->accepts(
null));
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
◆ testProblemWith()
NotConstraintTest::testProblemWith |
( |
| ) |
|
Definition at line 84 of file NotConstraintTest.php.
References ILIAS\Repository\lng(), and null.
87 ->expects($this->once())
92 $this->assertEquals(
"-not_true-", $this->not_true->problemWith(
null));
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
◆ 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, and null.
105 $not_ok = $this->df->ok(
null);
107 $res = $this->not_true->applyTo($not_ok);
108 $this->assertFalse(
$res->isOk());
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
◆ testRestrictOk()
NotConstraintTest::testRestrictOk |
( |
| ) |
|
Definition at line 95 of file NotConstraintTest.php.
References $res, and null.
97 $ok = $this->df->ok(
null);
99 $res = $this->not_false->applyTo($ok);
100 $this->assertTrue(
$res->isOk());
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
◆ testWithProblemBuilder()
NotConstraintTest::testWithProblemBuilder |
( |
| ) |
|
Definition at line 119 of file NotConstraintTest.php.
References null.
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));
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return 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: