ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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

Definition at line 19 of file LegacyTest.php.

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

20  {
21  return new \ILIAS\UI\Implementation\Factory();
22  }
+ Here is the caller graph for this function:

◆ test_get_content()

LegacyTest::test_get_content ( )

Definition at line 35 of file LegacyTest.php.

References getFactory().

36  {
37  $f = $this->getFactory();
38  $g = $f->legacy("Legacy Content");
39 
40  $this->assertEquals($g->getContent(), "Legacy Content");
41  }
+ Here is the call graph for this function:

◆ test_implements_factory_interface()

LegacyTest::test_implements_factory_interface ( )

Definition at line 24 of file LegacyTest.php.

References getFactory().

25  {
26  $f = $this->getFactory();
27 
28  $this->assertInstanceOf("ILIAS\\UI\\Factory", $f);
29  $this->assertInstanceOf(
30  "ILIAS\\UI\\Component\\Legacy\\Legacy",
31  $f->legacy("Legacy Content")
32  );
33  }
+ Here is the call graph for this function:

◆ test_render_content()

LegacyTest::test_render_content ( )

Definition at line 44 of file LegacyTest.php.

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

45  {
46  $f = $this->getFactory();
47  $r = $this->getDefaultRenderer();
48 
49  $g = $f->legacy("Legacy Content");
50 
51  $this->assertEquals($r->render($g), "Legacy Content");
52  }
getDefaultRenderer(JavaScriptBinding $js_binding=null)
Definition: Base.php:216
$r
Definition: example_031.php:79
+ Here is the call graph for this function:

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