Definition at line 125 of file AbstractRendererTest.php.
◆ setUp()
AbstractRendererTest::setUp |
( |
| ) |
|
◆ test_bindJavaScript_no_string()
AbstractRendererTest::test_bindJavaScript_no_string |
( |
| ) |
|
Definition at line 182 of file AbstractRendererTest.php.
References $id, and $r.
184 $r = new \ILIAS\UI\Implementation\Component\Glyph\GlyphNonAbstractRendererWithJS($this->ui_factory, $this->tpl_factory, $this->lng, $this->js_binding);
186 $g = new \ILIAS\UI\Implementation\Component\Glyph\Glyph(\
ILIAS\
UI\
Component\Glyph\Glyph::SETTINGS,
"aria_label");
188 $g = $g->withOnLoadCode(
function (
$id) {
194 $this->assertFalse(
"This should not happen...");
196 $this->assertTrue(
true);
if(!array_key_exists('StateId', $_REQUEST)) $id
◆ test_bindJavaScript_successfull()
AbstractRendererTest::test_bindJavaScript_successfull |
( |
| ) |
|
Definition at line 164 of file AbstractRendererTest.php.
References $id, $r, and array.
166 $r = new \ILIAS\UI\Implementation\Component\Glyph\GlyphNonAbstractRendererWithJS($this->ui_factory, $this->tpl_factory, $this->lng, $this->js_binding);
168 $g = new \ILIAS\UI\Implementation\Component\Glyph\Glyph(\
ILIAS\
UI\
Component\Glyph\Glyph::SETTINGS,
"aria_label");
171 $g = $g->withOnLoadCode(
function (
$id) use (&$ids) {
177 $this->assertEquals($this->js_binding->ids, $ids);
178 $this->assertEquals(
array(
"id_1"), $ids);
179 $this->assertEquals(
array(
"ID: id_1"), $this->js_binding->on_load_code);
if(!array_key_exists('StateId', $_REQUEST)) $id
Create styles array
The data for the language used.
◆ test_getTemplate_successfull()
AbstractRendererTest::test_getTemplate_successfull |
( |
| ) |
|
Definition at line 136 of file AbstractRendererTest.php.
References $r, $tpl, and array.
138 $r = new \ILIAS\UI\Implementation\Component\Glyph\GlyphNonAbstractRenderer($this->ui_factory, $this->tpl_factory, $this->lng, $this->js_binding);
139 $tpl =
$r->_getTemplate(
"tpl.glyph.html",
true,
false);
141 $expected =
array( realpath(__DIR__ .
"/../../../src/UI/templates/default/Glyph/tpl.glyph.html")
142 =>
array(
true,
false)
145 $this->assertEquals($expected, $this->tpl_factory->files);
Create styles array
The data for the language used.
◆ test_getTemplate_unsuccessfull()
AbstractRendererTest::test_getTemplate_unsuccessfull |
( |
| ) |
|
Definition at line 148 of file AbstractRendererTest.php.
References $r, $tpl, and array.
150 $r = new \ILIAS\UI\Implementation\Component\Counter\CounterNonAbstractRenderer($this->ui_factory, $this->tpl_factory, $this->lng, $this->js_binding);
153 $tpl =
$r->_getTemplate(
"tpl.counter_foo.html",
true,
false);
154 $this->assertFalse(
"We should not get here");
158 $expected =
array( realpath(__DIR__ .
"/../../src/UI/templates/default/Counter/tpl.counter_foo.html")
159 =>
array(
true,
false)
161 $this->assertEquals($expected, $this->tpl_factory->files);
Create styles array
The data for the language used.
The documentation for this class was generated from the following file: