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