ILIAS
trunk Revision v11.0_alpha-1753-gb21ca8c4367
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
c
e
g
h
j
l
m
p
s
t
u
v
+
Enumerations
a
c
e
f
i
j
l
m
n
o
p
r
s
t
u
v
z
+
Enumerator
a
c
d
e
f
g
i
l
m
n
o
p
q
s
t
u
v
y
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Ö
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Ö
Enumerations
Enumerator
+
Files
File List
+
Globals
+
All
$
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
z
+
Functions
a
b
c
d
e
f
g
h
i
m
n
p
r
s
t
u
v
+
Variables
$
a
c
e
g
h
i
m
n
o
p
r
s
t
u
v
z
Enumerations
Enumerator
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Enumerations
Enumerator
Modules
Pages
ilKSDocumentationEntryGUITest.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
require_once(
'vendor/composer/vendor/autoload.php'
);
22
include_once(
'./components/ILIAS/UI/tests/UITestHelper.php'
);
23
24
use
PHPUnit\Framework\TestCase
;
25
26
use
ILIAS\UI\Implementation\Crawler\Entry\ComponentEntries
as Entries;
27
use
ILIAS\UI\Implementation\Component\Panel\Report
;
28
29
class
ilKSDocumentationEntryGUITest
extends
TestCase
30
{
31
protected
ilKSDocumentationEntryGUI
$entry_gui
;
32
33
protected
function
setUp
(): void
34
{
35
$ui_helper =
new
UITestHelper
();
36
37
$ctrl = $this->getMockBuilder(ilCtrl::class)->disableOriginalConstructor()->onlyMethods([
38
'setParameterByClass'
39
])->getMock();
40
41
$entries_data = include
'./components/ILIAS/UI/tests/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
}
52
53
public
function
testConstruct
(): void
54
{
55
$this->assertInstanceOf(ilKSDocumentationEntryGUI::class, $this->entry_gui);
56
}
57
58
public
function
testRenderEntry
(): void
59
{
60
$report = $this->entry_gui->createUIComponentOfEntry();
61
$this->assertInstanceOf(Report::class, $report);
62
$this->assertEquals(
'Entry1Title'
, $report->getTitle());
63
}
64
}
ilKSDocumentationEntryGUITest\$entry_gui
ilKSDocumentationEntryGUI $entry_gui
Definition:
ilKSDocumentationEntryGUITest.php:31
ILIAS\UI\Implementation\Crawler\Entry\ComponentEntries
Container storing a list of UI Component Entries, can act as Iterator, countable and is serializable...
Definition:
ComponentEntries.php:34
ilKSDocumentationEntryGUITest\testConstruct
testConstruct()
Definition:
ilKSDocumentationEntryGUITest.php:53
ilKSDocumentationEntryGUITest
Definition:
ilKSDocumentationEntryGUITest.php:29
ilKSDocumentationEntryGUITest\testRenderEntry
testRenderEntry()
Definition:
ilKSDocumentationEntryGUITest.php:58
ilKSDocumentationEntryGUI
Renders the Overview of one Example in the Administration.
Definition:
class.ilKSDocumentationEntryGUI.php:28
ilKSDocumentationEntryGUITest\setUp
setUp()
Definition:
ilKSDocumentationEntryGUITest.php:33
UITestHelper
trait UITestHelper
Class UITestHelper can be helpful for test cases outside the UI Components, to inject a working facto...
Definition:
UITestHelper.php:36
Report
TestCase
TestCase
components
ILIAS
Style
System
test
Documentation
ilKSDocumentationEntryGUITest.php
Generated on Thu Apr 10 2025 23:04:06 for ILIAS by
1.8.13 (using
Doxyfile
)