ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
LegacyTest Class Reference

Test on button implementation. More...

+ Inheritance diagram for LegacyTest:
+ Collaboration diagram for LegacyTest:

Public Member Functions

 getFactory ()
 
 test_implements_factory_interface ()
 
 test_get_content ()
 
 test_render_content ()
 
- Public Member Functions inherited from ILIAS_UI_TestBase
 setUp ()
 
 tearDown ()
 
 getUIFactory ()
 
 getTemplateFactory ()
 
 getResourceRegistry ()
 
 getLanguage ()
 
 getJavaScriptBinding ()
 
 getDefaultRenderer (JavaScriptBinding $js_binding=null)
 
 normalizeHTML ($html)
 
 assertHTMLEquals ($expected_html_as_string, $html_as_string)
 

Detailed Description

Test on button implementation.

Definition at line 13 of file LegacyTest.php.

Member Function Documentation

◆ getFactory()

LegacyTest::getFactory ( )
Returns
\ILIAS\UI\Implementation\Factory

Definition at line 19 of file LegacyTest.php.

20 {
21 return new \ILIAS\UI\Implementation\Factory(
22 $this->createMock(C\Counter\Factory::class),
23 $this->createMock(C\Glyph\Factory::class),
24 $this->createMock(C\Button\Factory::class),
25 $this->createMock(C\Listing\Factory::class),
26 $this->createMock(C\Image\Factory::class),
27 $this->createMock(C\Panel\Factory::class),
28 $this->createMock(C\Modal\Factory::class),
29 $this->createMock(C\Dropzone\Factory::class),
30 $this->createMock(C\Popover\Factory::class),
31 $this->createMock(C\Divider\Factory::class),
32 $this->createMock(C\Link\Factory::class),
33 $this->createMock(C\Dropdown\Factory::class),
34 $this->createMock(C\Item\Factory::class),
35 $this->createMock(C\Icon\Factory::class),
36 $this->createMock(C\ViewControl\Factory::class),
37 $this->createMock(C\Chart\Factory::class),
38 $this->createMock(C\Input\Factory::class),
39 $this->createMock(C\Table\Factory::class),
40 $this->createMock(C\MessageBox\Factory::class),
41 $this->createMock(C\Card\Factory::class)
42 );
43 }

Referenced by test_get_content(), test_implements_factory_interface(), and test_render_content().

+ Here is the caller graph for this function:

◆ test_get_content()

LegacyTest::test_get_content ( )

Definition at line 56 of file LegacyTest.php.

57 {
58 $f = $this->getFactory();
59 $g = $f->legacy("Legacy Content");
60
61 $this->assertEquals($g->getContent(), "Legacy Content");
62 }

References $f, and getFactory().

+ Here is the call graph for this function:

◆ test_implements_factory_interface()

LegacyTest::test_implements_factory_interface ( )

Definition at line 45 of file LegacyTest.php.

46 {
47 $f = $this->getFactory();
48
49 $this->assertInstanceOf("ILIAS\\UI\\Factory", $f);
50 $this->assertInstanceOf(
51 "ILIAS\\UI\\Component\\Legacy\\Legacy",
52 $f->legacy("Legacy Content")
53 );
54 }

References $f, and getFactory().

+ Here is the call graph for this function:

◆ test_render_content()

LegacyTest::test_render_content ( )

Definition at line 65 of file LegacyTest.php.

66 {
67 $f = $this->getFactory();
68 $r = $this->getDefaultRenderer();
69
70 $g = $f->legacy("Legacy Content");
71
72 $this->assertEquals($r->render($g), "Legacy Content");
73 }
getDefaultRenderer(JavaScriptBinding $js_binding=null)
Definition: Base.php:228
$r
Definition: example_031.php:79

References $f, $r, ILIAS_UI_TestBase\getDefaultRenderer(), and getFactory().

+ Here is the call graph for this function:

The documentation for this class was generated from the following file: