Definition at line 25 of file IsNullConstraintTest.php.
◆ setUp()
IsNullConstraintTest::setUp |
( |
| ) |
|
|
protected |
Definition at line 32 of file IsNullConstraintTest.php.
References ILIAS\Repository\lng().
35 $this->
lng = $this->createMock(
ILIAS\Language\Language::class);
38 $this->c = $this->f->null();
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()
IsNullConstraintTest::testAccepts |
( |
| ) |
|
Definition at line 41 of file IsNullConstraintTest.php.
References null.
43 $this->assertTrue($this->c->accepts(
null));
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
◆ testCheckFails()
IsNullConstraintTest::testCheckFails |
( |
| ) |
|
◆ testCheckSucceed()
IsNullConstraintTest::testCheckSucceed |
( |
| ) |
|
Definition at line 51 of file IsNullConstraintTest.php.
References null.
53 $this->c->check(
null);
54 $this->assertTrue(
true);
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
◆ testNoProblemWith()
IsNullConstraintTest::testNoProblemWith |
( |
| ) |
|
Definition at line 63 of file IsNullConstraintTest.php.
References null.
65 $this->assertNull($this->c->problemWith(
null));
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
◆ testNotAccepts()
IsNullConstraintTest::testNotAccepts |
( |
| ) |
|
◆ testProblemWith()
IsNullConstraintTest::testProblemWith |
( |
| ) |
|
◆ testRestrictError()
IsNullConstraintTest::testRestrictError |
( |
| ) |
|
◆ testRestrictNotOk()
IsNullConstraintTest::testRestrictNotOk |
( |
| ) |
|
◆ testRestrictOk()
IsNullConstraintTest::testRestrictOk |
( |
| ) |
|
Definition at line 79 of file IsNullConstraintTest.php.
References $res, and null.
81 $ok = $this->df->ok(
null);
83 $res = $this->c->applyTo($ok);
84 $this->assertTrue(
$res->isOk());
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
◆ testWithProblemBuilder()
IsNullConstraintTest::testWithProblemBuilder |
( |
| ) |
|
Definition at line 103 of file IsNullConstraintTest.php.
105 $new_c = $this->c->withProblemBuilder(
static function ():
string {
106 return "This was a fault";
108 $this->assertEquals(
"This was a fault", $new_c->problemWith(2));
◆ $c
ILIAS Refinery Constraint IsNullConstraintTest::$c |
|
private |
◆ $df
DataFactory IsNullConstraintTest::$df |
|
private |
◆ $f
Refinery IsNullConstraintTest::$f |
|
private |
◆ $lng
ILIAS Language Language IsNullConstraintTest::$lng |
|
private |
The documentation for this class was generated from the following file: