ILIAS
release_8 Revision v8.19
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
x
+
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
a
b
c
d
e
f
g
h
j
l
m
p
s
t
u
+
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
Ö
+
Files
File List
+
Globals
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
g
h
i
m
n
p
r
s
t
u
v
x
+
Variables
$
a
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
ilSystemStyleDocumentationGUITest.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
require_once(
'libs/composer/vendor/autoload.php'
);
22
include_once(
'./tests/UI/UITestHelper.php'
);
23
24
use
PHPUnit\Framework\TestCase
;
25
use
ILIAS\UI\Implementation\Crawler\Entry\ComponentEntries
as Entries;
26
27
class
ilSystemStyleDocumentationGUITest
extends
TestCase
28
{
29
protected
ilSystemStyleDocumentationGUI
$documentation_gui
;
30
protected
ilGlobalPageTemplate
$tpl_observer
;
31
32
protected
function
setUp
(): void
33
{
34
$ui_helper =
new
UITestHelper
();
35
$this->tpl_observer = $this->getMockBuilder(ilGlobalPageTemplate::class)->disableOriginalConstructor()->getMock();
36
$ctrl = $this->getMockBuilder(ilCtrl::class)->disableOriginalConstructor()->getMock();
37
38
$this->documentation_gui =
new
ilSystemStyleDocumentationGUI
(
39
$this->tpl_observer,
40
$ctrl,
41
$ui_helper->factory(),
42
$ui_helper->renderer()
43
);
44
}
45
46
public
function
testConstruct
(): void
47
{
48
$this->assertInstanceOf(ilSystemStyleDocumentationGUI::class, $this->documentation_gui);
49
}
50
51
public
function
testShow
(): void
52
{
53
$entries_data = include
'./tests/UI/Crawler/Fixture/EntriesFixture.php'
;
54
$entries =
new
Entries();
55
$entries->addEntriesFromArray($entries_data);
56
$this->tpl_observer->expects($this->once())
57
->method(
'setContent'
)
58
->with($this->stringContains(
'Entry1Title'
));
59
$this->documentation_gui->show($entries,
'Entry1'
);
60
}
61
}
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:33
ilSystemStyleDocumentationGUITest\testConstruct
testConstruct()
Definition:
ilSystemStyleDocumentationGUITest.php:46
ilSystemStyleDocumentationGUITest
Definition:
ilSystemStyleDocumentationGUITest.php:27
ilGlobalPageTemplate
ilSystemStyleDocumentationGUI
Renders the Overview of the Examples in the Administration.
Definition:
class.ilSystemStyleDocumentationGUI.php:26
ilSystemStyleDocumentationGUITest\setUp
setUp()
Definition:
ilSystemStyleDocumentationGUITest.php:32
ilSystemStyleDocumentationGUITest\testShow
testShow()
Definition:
ilSystemStyleDocumentationGUITest.php:51
ilSystemStyleDocumentationGUITest\$tpl_observer
ilGlobalPageTemplate $tpl_observer
Definition:
ilSystemStyleDocumentationGUITest.php:30
UITestHelper
Class UITestHelper can be helpful for test cases outside the UI Components, to inject a working facto...
Definition:
UITestHelper.php:36
TestCase
ilSystemStyleDocumentationGUITest\$documentation_gui
ilSystemStyleDocumentationGUI $documentation_gui
Definition:
ilSystemStyleDocumentationGUITest.php:29
Services
Style
System
test
Documentation
ilSystemStyleDocumentationGUITest.php
Generated on Tue Apr 1 2025 22:02:35 for ILIAS by
1.8.13 (using
Doxyfile
)