ILIAS
release_8 Revision v8.23
|
Tests for the SimpleNode. More...
Public Member Functions | |
setUp () | |
brutallyTrimHTML (string $html) | |
testConstruction () | |
testWrongConstruction () | |
testConstructionWithIcon () | |
testConstructionWithIconAndDifferentLabels () | |
testGetDifferentLabels (C\Tree\Node\Simple $node) | |
testConstructionWithIconAndDifferentLabels More... | |
testGetLabel (C\Tree\Node\Simple $node) | |
testConstructionWithIcon More... | |
testGetIcon (C\Tree\Node\Simple $node) | |
testConstructionWithIcon More... | |
testDefaultAsyncLoading (C\Tree\Node\Simple $node) | |
testConstruction More... | |
testWithAsyncURL (C\Tree\Node\Simple $node) | |
testConstruction More... | |
testRendering (C\Tree\Node\Simple $node) | |
testConstruction More... | |
testRenderingWithAsync (C\Tree\Node\Simple $node) | |
testWithAsyncURL More... | |
testRenderingWithIcon (C\Tree\Node\Simple $node) | |
testConstructionWithIcon More... | |
testRenderingWithIconAndAltAttribute (C\Tree\Node\Simple $node) | |
This test is successfull if the icon label differs from the node label. More... | |
![]() | |
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 | |
![]() | |
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 | ) |
Definition at line 42 of file SimpleNodeTest.php.
Referenced by testRendering(), testRenderingWithAsync(), testRenderingWithIcon(), and testRenderingWithIconAndAltAttribute().
SimpleNodeTest::setUp | ( | ) |
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 | ) |
testConstruction
Definition at line 113 of file SimpleNodeTest.php.
SimpleNodeTest::testGetDifferentLabels | ( | C\Tree\Node\Simple | $node | ) |
testConstructionWithIconAndDifferentLabels
Definition at line 88 of file SimpleNodeTest.php.
SimpleNodeTest::testGetIcon | ( | C\Tree\Node\Simple | $node | ) |
testConstructionWithIcon
Definition at line 104 of file SimpleNodeTest.php.
SimpleNodeTest::testGetLabel | ( | C\Tree\Node\Simple | $node | ) |
testConstructionWithIcon
Definition at line 96 of file SimpleNodeTest.php.
SimpleNodeTest::testRendering | ( | C\Tree\Node\Simple | $node | ) |
testConstruction
Definition at line 133 of file SimpleNodeTest.php.
References brutallyTrimHTML(), ILIAS_UI_TestBase\getDefaultRenderer(), and ILIAS\UI\examples\MainControls\SystemInfo\simple().
SimpleNodeTest::testRenderingWithAsync | ( | C\Tree\Node\Simple | $node | ) |
testWithAsyncURL
Definition at line 155 of file SimpleNodeTest.php.
References brutallyTrimHTML(), ILIAS_UI_TestBase\getDefaultRenderer(), and ILIAS\UI\examples\MainControls\SystemInfo\simple().
SimpleNodeTest::testRenderingWithIcon | ( | C\Tree\Node\Simple | $node | ) |
testConstructionWithIcon
Definition at line 181 of file SimpleNodeTest.php.
References brutallyTrimHTML(), and ILIAS_UI_TestBase\getDefaultRenderer().
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).
testConstructionWithIconAndDifferentLabels
Definition at line 209 of file SimpleNodeTest.php.
References brutallyTrimHTML(), and ILIAS_UI_TestBase\getDefaultRenderer().
SimpleNodeTest::testWithAsyncURL | ( | C\Tree\Node\Simple | $node | ) |
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.