19declare(strict_types=1);
21require_once(__DIR__ .
"/../../../../../libs/composer/vendor/autoload.php");
22require_once(__DIR__ .
"/../../../Base.php");
23require_once(__DIR__ .
"/InputTest.php");
44 $language = $this->createMock(ilLanguage::class);
45 $language->method(
"txt")
46 ->will($this->returnArgument(0));
62 $this->assertInstanceOf(Field\Link::class,
$url);
69 $label =
"Test Label";
70 $byline =
"Test Byline";
71 $url =
$factory->link($label, $byline)->withNameFrom($this->name_source);
75 <div class="form-group row">
76 <label for="id_1" class="control-label col-sm-4 col-md-3 col-lg-2">ui_link_label</label>
77 <div class="col-sm-8 col-md-9 col-lg-10">
78 <input id="id_1" type="text" name="name_0/label_1" class="form-control form-control-sm" />
81 <div class="form-group row">
82 <label for="id_2" class="control-label col-sm-4 col-md-3 col-lg-2">ui_link_url</label>
83 <div class="col-sm-8 col-md-9 col-lg-10">
84 <input id="id_2" type="url" name="name_0/url_2" class="form-control form-control-sm" />
97 $input =
$f->link(
"",
"")
98 ->withNameFrom(
new class () implements
NameSource {
99 public function getNewName():
string
103 public function getNewDedicatedName():
string
105 return "dedicated_name";
108 $input = $input->withInput(
new class () implements
InputData {
109 public function getOr($_, $default):
string
113 public function get($_):
string
123 $result = $input->getContent();
125 $this->assertNull($result->value());
Provides common functionality for UI tests.
normalizeHTML(string $html)
brutallyTrimHTML(string $html)
A more radical version of normalizeHTML.
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...
Class ChatMainBarProvider \MainMenu\Provider.