Definition at line 23 of file ilLSPostConditionTest.php.
◆ testObjectCreation()
ilLSPostConditionTest::testObjectCreation |
( |
| ) |
|
Definition at line 25 of file ilLSPostConditionTest.php.
29 $this->assertInstanceOf(ilLSPostCondition::class, $obj);
30 $this->assertEquals(33, $obj->getRefId());
31 $this->assertEquals(
'always', $obj->getConditionOperator());
32 $this->assertNull($obj->getValue());
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
◆ testWithConditionOperator()
ilLSPostConditionTest::testWithConditionOperator |
( |
| ) |
|
Definition at line 35 of file ilLSPostConditionTest.php.
38 $new_obj = $obj->withConditionOperator(
'failed');
40 $this->assertEquals(23, $obj->getRefId());
41 $this->assertEquals(
'always', $obj->getConditionOperator());
42 $this->assertEquals(
'15', $obj->getValue());
44 $this->assertEquals(23, $new_obj->getRefId());
45 $this->assertEquals(
'failed', $new_obj->getConditionOperator());
46 $this->assertEquals(
'15', $new_obj->getValue());
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
◆ testWithValue()
ilLSPostConditionTest::testWithValue |
( |
| ) |
|
Definition at line 49 of file ilLSPostConditionTest.php.
52 $new_obj = $obj->withValue(
'22');
54 $this->assertEquals(45, $obj->getRefId());
55 $this->assertEquals(
'not_finished', $obj->getConditionOperator());
56 $this->assertEquals(
'15', $obj->getValue());
58 $this->assertEquals(45, $new_obj->getRefId());
59 $this->assertEquals(
'not_finished', $new_obj->getConditionOperator());
60 $this->assertEquals(
'22', $new_obj->getValue());
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
The documentation for this class was generated from the following file: