ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
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  }
Class UITestHelper can be helpful for test cases outside the UI Components, to inject a working facto...

◆ testGetMainTemplate()

UITestHelperTest::testGetMainTemplate ( )

Definition at line 46 of file UITestHelperTest.php.

References ILIAS\Repository\mainTemplate().

46  : void
47  {
48  $this->assertInstanceOf(ilIndependentGlobalTemplate::class, (new UITestHelper())->mainTemplate());
49  }
Class UITestHelper can be helpful for test cases outside the UI Components, to inject a working facto...
+ 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  }
Class UITestHelper can be helpful for test cases outside the UI Components, to inject a working facto...

◆ testRenderExample()

UITestHelperTest::testRenderExample ( )

Definition at line 51 of file UITestHelperTest.php.

References $c.

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
Class UITestHelper can be helpful for test cases outside the UI Components, to inject a working facto...

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