Definition at line 32 of file UrlInputTest.php.
◆ setUp()
◆ testCommonRendering()
UrlInputTest::testCommonRendering |
( |
| ) |
|
Definition at line 86 of file UrlInputTest.php.
References Vendor\Package\$f, $url, and null.
88 $f = $this->getFieldFactory();
89 $url =
$f->url(
'label',
null)->withNameFrom($this->name_source);
91 $this->testWithError(
$url);
92 $this->testWithNoByline(
$url);
93 $this->testWithRequired(
$url);
94 $this->testWithDisabled(
$url);
95 $this->testWithAdditionalOnloadCodeRendersId(
$url);
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
◆ testImplementsFactoryInterface()
UrlInputTest::testImplementsFactoryInterface |
( |
| ) |
|
Definition at line 43 of file UrlInputTest.php.
References $url.
45 $factory = $this->getFieldFactory();
46 $url = $factory->url(
"Test Label",
"Test Byline");
49 $this->assertInstanceOf(Field\Url::class,
$url);
Interface Observer Contains several chained tasks and infos about them.
◆ testRendering()
UrlInputTest::testRendering |
( |
| ) |
|
Definition at line 52 of file UrlInputTest.php.
References $renderer, and $url.
54 $factory = $this->getFieldFactory();
56 $label =
"Test Label";
57 $byline =
"Test Byline";
58 $url = $factory->url($label, $byline)->withNameFrom($this->name_source);
59 $expected = $this->getFormWrappedHtml(
62 '<input id="id_1" type="url" name="name_0" class="c-field-url" />',
66 $this->assertEquals($expected, $this->render(
$url));
◆ testRenderValue()
UrlInputTest::testRenderValue |
( |
| ) |
|
Definition at line 69 of file UrlInputTest.php.
References $url, and null.
71 $factory = $this->getFieldFactory();
72 $label =
"Test Label";
73 $value =
"https://www.ilias.de/";
74 $url = $factory->url($label)->withValue($value)
75 ->withNameFrom($this->name_source);
76 $expected = $this->getFormWrappedHtml(
79 '<input id="id_1" type="url" value="https://www.ilias.de/" name="name_0" class="c-field-url" />',
83 $this->assertEquals($expected, $this->render(
$url));
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
◆ $name_source
The documentation for this class was generated from the following file: