ILIAS
trunk Revision v11.0_alpha-2662-g519ff7d528f
|
Tests for the SimpleNode. More...
Public Member Functions | |
setUp () | |
brutallyTrimHTML (string $html) | |
testConstruction () | |
testWrongConstruction () | |
testConstructionWithIcon () | |
testConstructionWithIconAndDifferentLabels () | |
testGetDifferentLabels (C\Tree\Node\Simple $node) | |
testGetLabel (C\Tree\Node\Simple $node) | |
testGetIcon (C\Tree\Node\Simple $node) | |
testDefaultAsyncLoading (C\Tree\Node\Simple $node) | |
testWithAsyncURL (C\Tree\Node\Simple $node) | |
testRendering (C\Tree\Node\Simple $node) | |
testRenderingWithAsync (C\Tree\Node\Simple $node) | |
testRenderingWithIcon (C\Tree\Node\Simple $node) | |
testRenderingWithIconAndAltAttribute (C\Tree\Node\Simple $node) | |
This test is successfull if the icon label differs from the node label. More... | |
Private Attributes | |
I Tree Node Factory | $node_factory |
C Symbol Icon Standard | $icon |
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 | ) |
Definition at line 105 of file SimpleNodeTest.php.
SimpleNodeTest::testGetDifferentLabels | ( | C\Tree\Node\Simple | $node | ) |
Definition at line 86 of file SimpleNodeTest.php.
SimpleNodeTest::testGetIcon | ( | C\Tree\Node\Simple | $node | ) |
Definition at line 98 of file SimpleNodeTest.php.
SimpleNodeTest::testGetLabel | ( | C\Tree\Node\Simple | $node | ) |
Definition at line 92 of file SimpleNodeTest.php.
SimpleNodeTest::testRendering | ( | C\Tree\Node\Simple | $node | ) |
Definition at line 121 of file SimpleNodeTest.php.
References $r, brutallyTrimHTML(), and ILIAS\UI\examples\MainControls\SystemInfo\simple().
SimpleNodeTest::testRenderingWithAsync | ( | C\Tree\Node\Simple | $node | ) |
Definition at line 141 of file SimpleNodeTest.php.
References $r, brutallyTrimHTML(), and ILIAS\UI\examples\MainControls\SystemInfo\simple().
SimpleNodeTest::testRenderingWithIcon | ( | C\Tree\Node\Simple | $node | ) |
Definition at line 164 of file SimpleNodeTest.php.
References $r, and brutallyTrimHTML().
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).
Definition at line 191 of file SimpleNodeTest.php.
References $r, and brutallyTrimHTML().
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.