Definition at line 15 of file SelectTest.php.
◆ testEmptyStringIsAcceptableClientSideValueIfSelectIsNotRequired()
SelectInputTest::testEmptyStringIsAcceptableClientSideValueIfSelectIsNotRequired |
( |
| ) |
|
Definition at line 34 of file SelectTest.php.
35 {
36 $options = [];
38 $this->createMock(
ILIAS\Data\Factory::class),
39 $this->createMock(
ILIAS\Refinery\Factory::class),
40 "",
41 $options,
42 ""
43 );
44
45 $this->assertTrue($select->_isClientSideValueOk(""));
46 }
Class ChatMainBarProvider \MainMenu\Provider.
◆ testEmptyStringIsAnAcceptableClientSideValueEvenIfSelectIsRequired()
SelectInputTest::testEmptyStringIsAnAcceptableClientSideValueEvenIfSelectIsRequired |
( |
| ) |
|
Definition at line 48 of file SelectTest.php.
49 {
50 $options = [];
52 $this->createMock(
ILIAS\Data\Factory::class),
53 $this->createMock(
ILIAS\Refinery\Factory::class),
54 "",
55 $options,
56 ""
57 ))->withRequired(true);
58
59 $this->assertTrue($select->_isClientSideValueOk(""));
60 }
◆ testOnlyValuesFromOptionsAreAcceptableClientSideValues()
SelectInputTest::testOnlyValuesFromOptionsAreAcceptableClientSideValues |
( |
| ) |
|
Definition at line 17 of file SelectTest.php.
18 {
19 $options = ["one" => "Eins", "two" => "Zwei", "three" => "Drei"];
21 $this->createMock(
ILIAS\Data\Factory::class),
22 $this->createMock(
ILIAS\Refinery\Factory::class),
23 "",
24 $options,
25 ""
26 );
27
28 $this->assertTrue($select->_isClientSideValueOk("one"));
29 $this->assertTrue($select->_isClientSideValueOk("two"));
30 $this->assertTrue($select->_isClientSideValueOk("three"));
31 $this->assertFalse($select->_isClientSideValueOk("four"));
32 }
The documentation for this class was generated from the following file: