5 require_once(
"libs/composer/vendor/autoload.php");
6 require_once(__DIR__ .
"../../../../Base.php");
8 use \ILIAS\UI\Component as
C;
9 use \ILIAS\UI\Implementation\Component as
I;
32 $this->node_factory =
new I\Tree\Node\Factory();
33 $icon_factory =
new I\Symbol\Icon\Factory();
34 $this->icon = $icon_factory->standard(
"",
'');
39 $node = $this->node_factory->bylined(
'My Label',
'This is my byline', $this->icon);
40 $this->assertEquals(
'My Label', $node->getLabel());
41 $this->assertEquals(
'This is my byline', $node->getByline());
42 $this->assertEquals($this->icon, $node->getIcon());
47 $node = $this->node_factory->bylined(
'My Label',
'This is my byline');
50 $html = $r->render($node);
53 <li
id=
"" class=
"il-tree-node node-simple" role=
"none">
54 <span
class=
"node-line">
55 <span
class=
"node-label">My Label</span>
56 <span
class=
"node-byline">This is my byline</span>
69 $node = $this->node_factory->bylined(
'My Label',
'This is my byline', $this->icon);
72 $html = $r->render($node);
75 <li
id=
"" class=
"il-tree-node node-simple" role=
"none">
76 <span
class=
"node-line">
77 <span
class=
"node-label"><div
class=
"icon small" aria-label=
""></div>My Label</span>
78 <span
class=
"node-byline">This is my byline</span>
91 $node = $this->node_factory->bylined(
'My Label',
'This is my byline');
92 $node = $node->withAsyncURL(
'something.de');
95 $html = $r->render($node);
99 class=
"il-tree-node node-simple expandable" 100 role=
"treeitem" aria-expanded=
"false" 101 data-async_url=
"something.de" data-async_loaded=
"false">
102 <span
class=
"node-line">
103 <span
class=
"node-label">My Label</span>
104 <span
class=
"node-byline">This is my byline</span>
125 $languageMock = $this->getMockBuilder(
'ilLanguage')
126 ->disableOriginalConstructor()
153 $fsLoader = new \ILIAS\UI\Implementation\Render\FSLoader(
154 $defaultRendererFactory,
155 $glyphRendererFactory,
156 $fieldRendererFactory
159 $loaderResourceRegistryWrapper = new \ILIAS\UI\Implementation\Render\LoaderResourceRegistryWrapper(
164 $component_renderer_loader
165 = new \ILIAS\UI\Implementation\Render\LoaderCachingWrapper(
166 $loaderResourceRegistryWrapper
Class ChatMainBarProvider .
Provides common functionality for UI tests.
Provides methods to interface with javascript.
brutallyTrimHTML($html)
A more radical version of normalizeHTML.
Tests for the SimpleNode.
getDefaultRenderer(JavaScriptBinding $js_binding=null)