Tests for the Expandable Tree.
More...
Tests for the Expandable Tree.
Definition at line 66 of file ExpandableTreeTest.php.
◆ brutallyTrimHTML()
ExpandableTreeTest::brutallyTrimHTML |
( |
string |
$html | ) |
|
Definition at line 95 of file ExpandableTreeTest.php.
97 $html = str_replace([
"\n",
"\r",
"\t"],
"", $html);
98 $html = preg_replace(
'# {2,}#',
" ", $html);
◆ getInnerTreePart()
ExpandableTreeTest::getInnerTreePart |
( |
| ) |
|
|
protected |
Definition at line 128 of file ExpandableTreeTest.php.
130 return '<li id="" class="il-tree-node node-simple expandable" role="treeitem" aria-expanded="false"> 131 <span class="node-line"><span class="node-label">1</span></span> 134 <li id="" class="il-tree-node node-simple" role="treeitem"> 135 <span class="node-line"><span class="node-label">1.1</span></span> 137 <li id="" class="il-tree-node node-simple expandable" role="treeitem" aria-expanded="false"> 138 <span class="node-line"><span class="node-label">1.2</span></span> 141 <li id="" class="il-tree-node node-simple" role="treeitem"> 142 <span class="node-line"><span class="node-label">1.2.1</span></span> 148 <li id="" class="il-tree-node node-simple" role="treeitem"> 149 <span class="node-line"><span class="node-label">2</span></span>
◆ getUIFactory()
ExpandableTreeTest::getUIFactory |
( |
| ) |
|
Definition at line 70 of file ExpandableTreeTest.php.
73 public function tree():
C\Tree\
Factory 75 return new I\Tree\Factory();
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
◆ setUp()
ExpandableTreeTest::setUp |
( |
| ) |
|
◆ testRendering()
ExpandableTreeTest::testRendering |
( |
| ) |
|
Definition at line 102 of file ExpandableTreeTest.php.
105 $html = $r->render($this->tree);
107 $expected =
'<ul id="id_1" class="il-tree" role="tree" aria-label="label">' . $this->
getInnerTreePart() .
'</ul>';
getDefaultRenderer(JavaScriptBinding $js_binding=null, array $with_stub_renderings=[])
brutallyTrimHTML(string $html)
◆ testRenderingAsSubTree()
ExpandableTreeTest::testRenderingAsSubTree |
( |
| ) |
|
Definition at line 115 of file ExpandableTreeTest.php.
118 $html = $r->render($this->tree->withIsSubTree(
true));
getDefaultRenderer(JavaScriptBinding $js_binding=null, array $with_stub_renderings=[])
brutallyTrimHTML(string $html)
◆ $tree
C Tree Tree ExpandableTreeTest::$tree |
|
protected |
The documentation for this class was generated from the following file: