ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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 ()
 
 normalizeHTML ($html)
 
 assertHTMLEquals ($expected_html_as_string, $html_as_string)
 

Detailed Description

Test on button implementation.

Definition at line 14 of file LegacyTest.php.

Member Function Documentation

◆ getFactory()

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

Definition at line 19 of file LegacyTest.php.

19 {
20 return new \ILIAS\UI\Implementation\Factory();
21 }

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 33 of file LegacyTest.php.

33 {
34 $f = $this->getFactory();
35 $g = $f->legacy("Legacy Content");
36
37 $this->assertEquals($g->getContent(), "Legacy Content");
38 }

References getFactory().

+ Here is the call graph for this function:

◆ test_implements_factory_interface()

LegacyTest::test_implements_factory_interface ( )

Definition at line 23 of file LegacyTest.php.

23 {
24 $f = $this->getFactory();
25
26 $this->assertInstanceOf("ILIAS\\UI\\Factory", $f);
27 $this->assertInstanceOf
28 ( "ILIAS\\UI\\Component\\Legacy\\Legacy"
29 , $f->legacy("Legacy Content")
30 );
31 }

References getFactory().

+ Here is the call graph for this function:

◆ test_render_content()

LegacyTest::test_render_content ( )

Definition at line 41 of file LegacyTest.php.

41 {
42 $f = $this->getFactory();
43 $r = $this->getDefaultRenderer();
44
45 $g = $f->legacy("Legacy Content");
46
47 $this->assertEquals($r->render($g), "Legacy Content");
48 }
getDefaultRenderer()
Definition: Base.php:100
$r
Definition: example_031.php:79

References $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: