19 declare(strict_types=1);
    21 require_once(__DIR__ . 
"/../../../../../libs/composer/vendor/autoload.php");
    22 require_once(__DIR__ . 
"/../../../Base.php");
    43         $df = 
new Data\Factory();
    44         $language = $this->createMock(ilLanguage::class);
    45         return new I\Input\Field\Factory(
    61         $ms = 
$f->multiSelect(
"label", $options, 
"byline");
    62         $this->assertInstanceOf(\
ILIAS\
UI\
Component\Input\Container\Form\FormInput::class, $ms);
    63         $this->assertInstanceOf(Field\MultiSelect::class, $ms);
    73         $ms = 
$f->multiSelect(
"label", $options, 
"byline");
    74         $this->assertEquals($options, $ms->getOptions());
    79         $this->expectException(InvalidArgumentException::class);
    85         $ms = 
$f->multiSelect(
"label", $options, 
"byline")
    86             ->withNameFrom(
new class () implements 
NameSource {
    87                 public function getNewName(): 
string    92         $ms = $ms->withInput(
new class () implements 
InputData {
    96             public function getOr($_, $__): array
   100             public function get($_): 
void   103             public function has($name): 
bool   118         $ms = 
$f->multiSelect(
"label", $options, 
"byline")
   119             ->withNameFrom($this->name_source);
   121         $name = $ms->getName();
   122         $label = $ms->getLabel();
   123         $byline = $ms->getByline();
   125             . 
"<div class=\"form-group row\">"   126                 . 
"<label class=\"control-label col-sm-4 col-md-3 col-lg-2\">$label</label>"   127                 . 
"<div class=\"col-sm-8 col-md-9 col-lg-10\">"   128                     . 
"<ul class=\"il-input-multiselect\" id=\"id_1\">";
   130         foreach ($options as $opt_value => $opt_label) {
   133                             . 
"<input type=\"checkbox\" name=\"$name" . 
"[]\" value=\"$opt_value\" />"   134                             . 
"<span>$opt_label</span>"   140                     . 
"<div class=\"help-block\">$byline</div>"   154         $value = array_keys($options)[1];
   155         $ms = 
$f->multiSelect(
"label", $options, 
"byline")
   156             ->withNameFrom($this->name_source)
   157             ->withValue([$value]);
   159         $name = $ms->getName();
   160         $label = $ms->getLabel();
   161         $byline = $ms->getByline();
   163             . 
"<div class=\"form-group row\">"   164                 . 
"<label class=\"control-label col-sm-4 col-md-3 col-lg-2\">$label</label>"   165                 . 
"<div class=\"col-sm-8 col-md-9 col-lg-10\">"   166                     . 
"<ul class=\"il-input-multiselect\" id=\"id_1\">";
   168         foreach ($options as $opt_value => $opt_label) {
   169             if ($opt_value === $value) {
   172                             . 
"<input type=\"checkbox\" name=\"$name" . 
"[]\" value=\"$opt_value\" checked=\"checked\" />"   173                             . 
"<span>$opt_label</span>"   178                             . 
"<input type=\"checkbox\" name=\"$name" . 
"[]\" value=\"$opt_value\" />"   179                             . 
"<span>$opt_label</span>"   186                     . 
"<div class=\"help-block\">$byline</div>"   200         $ms = 
$f->multiSelect(
"label", $options, 
"byline")
   201             ->withNameFrom($this->name_source)->withDisabled(
true);
   203         $name = $ms->getName();
   204         $label = $ms->getLabel();
   205         $byline = $ms->getByline();
   207             . 
"<div class=\"form-group row\">"   208             . 
"<label class=\"control-label col-sm-4 col-md-3 col-lg-2\">$label</label>"   209             . 
"<div class=\"col-sm-8 col-md-9 col-lg-10\">"   210             . 
"<ul class=\"il-input-multiselect\" id=\"id_1\">";
   212         foreach ($options as $opt_value => $opt_label) {
   215                 . 
"<input type=\"checkbox\" name=\"$name" . 
"[]\" value=\"$opt_value\" disabled=\"disabled\" />"   216                 . 
"<span>$opt_label</span>"   222             . 
"<div class=\"help-block\">$byline</div>"   233         $ms = 
$f->multiSelect(
"label", $options, 
"byline")
   234             ->withNameFrom($this->name_source)->withDisabled(
true);
   236         $name = $ms->getName();
   237         $label = $ms->getLabel();
   238         $byline = $ms->getByline();
   240             . 
"<div class=\"form-group row\">"   241             . 
"<label class=\"control-label col-sm-4 col-md-3 col-lg-2\">$label</label>"   242             . 
"<div class=\"col-sm-8 col-md-9 col-lg-10\">"   243             . 
"<ul class=\"il-input-multiselect\" id=\"id_1\">"   246             . 
"<div class=\"help-block\">$byline</div>" 
getDefaultRenderer(JavaScriptBinding $js_binding=null, array $with_stub_renderings=[])
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
Class ChatMainBarProvider . 
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
assertHTMLEquals(string $expected_html_as_string, string $html_as_string)
 
Provides common functionality for UI tests. 
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...