|
ILIAS
release_8 Revision v8.24
|
Tests for the SimpleNode. More...
Inheritance diagram for SimpleNodeTest:
Collaboration diagram for SimpleNodeTest:Public Member Functions | |
| setUp () | |
| brutallyTrimHTML (string $html) | |
| A more radical version of normalizeHTML. More... | |
| testConstruction () | |
| testWrongConstruction () | |
| testConstructionWithIcon () | |
| testConstructionWithIconAndDifferentLabels () | |
| testGetDifferentLabels (C\Tree\Node\Simple $node) | |
| @depends testConstructionWithIconAndDifferentLabels More... | |
| testGetLabel (C\Tree\Node\Simple $node) | |
| @depends testConstructionWithIcon More... | |
| testGetIcon (C\Tree\Node\Simple $node) | |
| @depends testConstructionWithIcon More... | |
| testDefaultAsyncLoading (C\Tree\Node\Simple $node) | |
| @depends testConstruction More... | |
| testWithAsyncURL (C\Tree\Node\Simple $node) | |
| @depends testConstruction More... | |
| testRendering (C\Tree\Node\Simple $node) | |
| @depends testConstruction More... | |
| testRenderingWithAsync (C\Tree\Node\Simple $node) | |
| @depends testWithAsyncURL More... | |
| testRenderingWithIcon (C\Tree\Node\Simple $node) | |
| @depends testConstructionWithIcon More... | |
| testRenderingWithIconAndAltAttribute (C\Tree\Node\Simple $node) | |
| This test is successfull if the icon label differs from the node label. More... | |
Public Member Functions inherited from ILIAS_UI_TestBase | |
| setUp () | |
| tearDown () | |
| getUIFactory () | |
| getTemplateFactory () | |
| getResourceRegistry () | |
| getLanguage () | |
| getJavaScriptBinding () | |
| getRefinery () | |
| getImagePathResolver () | |
| getDataFactory () | |
| getDefaultRenderer (JavaScriptBinding $js_binding=null, array $with_stub_renderings=[]) | |
| getDecoratedRenderer (Renderer $default) | |
| normalizeHTML (string $html) | |
| assertHTMLEquals (string $expected_html_as_string, string $html_as_string) | |
Private Attributes | |
| I Tree Node Factory | $node_factory |
| C Symbol Icon Standard | $icon |
Additional Inherited Members | |
Protected Member Functions inherited from ILIAS_UI_TestBase | |
| brutallyTrimHTML (string $html) | |
| A more radical version of normalizeHTML. More... | |
| brutallyTrimSignals (string $html) | |
| A naive replacement of all il_signal-ids with dots to ease comparisons of rendered output. More... | |
Tests for the SimpleNode.
Definition at line 30 of file SimpleNodeTest.php.
| SimpleNodeTest::brutallyTrimHTML | ( | string | $html | ) |
A more radical version of normalizeHTML.
Use if hard to tackle issues occur by asserting due string outputs produce an equal DOM
Reimplemented from ILIAS_UI_TestBase.
Definition at line 42 of file SimpleNodeTest.php.
Referenced by testRendering(), testRenderingWithAsync(), testRenderingWithIcon(), and testRenderingWithIconAndAltAttribute().
Here is the caller graph for this function:| SimpleNodeTest::setUp | ( | ) |
Reimplemented from ILIAS_UI_TestBase.
Definition at line 35 of file SimpleNodeTest.php.
| SimpleNodeTest::testConstruction | ( | ) |
Definition at line 49 of file SimpleNodeTest.php.
| SimpleNodeTest::testConstructionWithIcon | ( | ) |
Definition at line 65 of file SimpleNodeTest.php.
| SimpleNodeTest::testConstructionWithIconAndDifferentLabels | ( | ) |
Definition at line 74 of file SimpleNodeTest.php.
| SimpleNodeTest::testDefaultAsyncLoading | ( | C\Tree\Node\Simple | $node | ) |
@depends testConstruction
Definition at line 113 of file SimpleNodeTest.php.
| SimpleNodeTest::testGetDifferentLabels | ( | C\Tree\Node\Simple | $node | ) |
@depends testConstructionWithIconAndDifferentLabels
Definition at line 88 of file SimpleNodeTest.php.
| SimpleNodeTest::testGetIcon | ( | C\Tree\Node\Simple | $node | ) |
@depends testConstructionWithIcon
Definition at line 104 of file SimpleNodeTest.php.
| SimpleNodeTest::testGetLabel | ( | C\Tree\Node\Simple | $node | ) |
@depends testConstructionWithIcon
Definition at line 96 of file SimpleNodeTest.php.
| SimpleNodeTest::testRendering | ( | C\Tree\Node\Simple | $node | ) |
@depends testConstruction
Definition at line 133 of file SimpleNodeTest.php.
References brutallyTrimHTML(), ILIAS_UI_TestBase\getDefaultRenderer(), and ILIAS\UI\examples\MainControls\SystemInfo\simple().
Here is the call graph for this function:| SimpleNodeTest::testRenderingWithAsync | ( | C\Tree\Node\Simple | $node | ) |
@depends testWithAsyncURL
Definition at line 155 of file SimpleNodeTest.php.
References brutallyTrimHTML(), ILIAS_UI_TestBase\getDefaultRenderer(), and ILIAS\UI\examples\MainControls\SystemInfo\simple().
Here is the call graph for this function:| SimpleNodeTest::testRenderingWithIcon | ( | C\Tree\Node\Simple | $node | ) |
@depends testConstructionWithIcon
Definition at line 181 of file SimpleNodeTest.php.
References brutallyTrimHTML(), and ILIAS_UI_TestBase\getDefaultRenderer().
Here is the call graph for this function:| SimpleNodeTest::testRenderingWithIconAndAltAttribute | ( | C\Tree\Node\Simple | $node | ) |
This test is successfull if the icon label differs from the node label.
As a result the alt attribute will get the icon's label as content. Else the alt attribute will be empty (see testRenderingWithIcon).
@depends testConstructionWithIconAndDifferentLabels
Definition at line 209 of file SimpleNodeTest.php.
References brutallyTrimHTML(), and ILIAS_UI_TestBase\getDefaultRenderer().
Here is the call graph for this function:| SimpleNodeTest::testWithAsyncURL | ( | C\Tree\Node\Simple | $node | ) |
@depends testConstruction
Definition at line 121 of file SimpleNodeTest.php.
References $url.
| SimpleNodeTest::testWrongConstruction | ( | ) |
Definition at line 59 of file SimpleNodeTest.php.
|
private |
Definition at line 33 of file SimpleNodeTest.php.
|
private |
Definition at line 32 of file SimpleNodeTest.php.