◆ setUp()
| ilKSDocumentationEntryGUITest::setUp |
( |
| ) |
|
|
protected |
Definition at line 32 of file ilKSDocumentationEntryGUITest.php.
32 : void
33 {
35
36 $ctrl = $this->getMockBuilder(ilCtrl::class)->disableOriginalConstructor()->onlyMethods([
37 'setParameterByClass'
38 ])->getMock();
39
40 $entries_data = include './components/ILIAS/UI/tests/Crawler/Fixture/EntriesFixture.php';
41 $entries = new Entries();
42 $entries->addEntriesFromArray($entries_data);
43
44 $this->entry_gui = new ilKSDocumentationEntryGUI(
45 $ui_helper->factory(),
46 $ctrl,
47 $entries,
48 'Entry1'
49 );
50 }
trait UITestHelper
Class UITestHelper can be helpful for test cases outside the UI Components, to inject a working facto...
References UITestHelper.
◆ testConstruct()
| ilKSDocumentationEntryGUITest::testConstruct |
( |
| ) |
|
◆ testRenderEntry()
| ilKSDocumentationEntryGUITest::testRenderEntry |
( |
| ) |
|
Definition at line 57 of file ilKSDocumentationEntryGUITest.php.
57 : void
58 {
59 $report = $this->entry_gui->createUIComponentOfEntry();
60 $this->assertInstanceOf(Report::class, $report);
61 $this->assertEquals('Entry1Title', $report->getTitle());
62 }
◆ $entry_gui
| ilKSDocumentationEntryGUI ilKSDocumentationEntryGUITest::$entry_gui |
|
protected |
The documentation for this class was generated from the following file: