ILIAS  release_8 Revision v8.25-1-g13de6a5eca6
UITestHelperTest Class Reference
+ Inheritance diagram for UITestHelperTest:
+ Collaboration diagram for UITestHelperTest:

Public Member Functions

 testConstruct ()
 
 testGetFactory ()
 
 testGetRenderer ()
 
 testGetMainTemplate ()
 
 testRenderExample ()
 

Detailed Description

Definition at line 29 of file UITestHelperTest.php.

Member Function Documentation

◆ testConstruct()

UITestHelperTest::testConstruct ( )

Definition at line 31 of file UITestHelperTest.php.

31 : void
32 {
33 $this->assertInstanceOf("UITestHelper", new UITestHelper());
34 }
Class UITestHelper can be helpful for test cases outside the UI Components, to inject a working facto...

◆ testGetFactory()

UITestHelperTest::testGetFactory ( )

Definition at line 36 of file UITestHelperTest.php.

36 : void
37 {
38 $this->assertInstanceOf(Factory::class, (new UITestHelper())->factory());
39 }

◆ testGetMainTemplate()

UITestHelperTest::testGetMainTemplate ( )

Definition at line 46 of file UITestHelperTest.php.

46 : void
47 {
48 $this->assertInstanceOf(ilIndependentGlobalTemplate::class, (new UITestHelper())->mainTemplate());
49 }

References ILIAS\Repository\mainTemplate().

+ Here is the call graph for this function:

◆ testGetRenderer()

UITestHelperTest::testGetRenderer ( )

Definition at line 41 of file UITestHelperTest.php.

41 : void
42 {
43 $this->assertInstanceOf(Renderer::class, (new UITestHelper())->renderer());
44 }

◆ testRenderExample()

UITestHelperTest::testRenderExample ( )

Definition at line 51 of file UITestHelperTest.php.

51 : void
52 {
53 $helper = new UITestHelper();
54 $c = $helper->factory()->legacy("hello world");
55 $this->assertEquals("hello world", $helper->renderer()->render($c));
56 }
$c
Definition: cli.php:38

References $c.


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