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
InfoScreenStandardGUIRequestTest.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
use
PHPUnit\Framework\TestCase
;
22
use
ILIAS\InfoScreen\StandardGUIRequest
;
23
use
ILIAS\Data\Factory
;
24
30
class
InfoScreenStandardGUIRequestTest
extends
TestCase
31
{
32
protected
function
tearDown
(): void
33
{
34
}
35
36
protected
function
getRequest
(array $get, array
$post
):
StandardGUIRequest
37
{
38
$http_mock = $this->createMock(
ILIAS
\
HTTP
\Services::class);
39
$lng_mock = $this->createMock(ilLanguage::class);
40
$data
=
new
Factory
();
41
$refinery
= new \ILIAS\Refinery\Factory(
$data
, $lng_mock);
42
return
new
StandardGUIRequest
(
43
$http_mock,
44
$refinery
,
45
$get,
46
$post
47
);
48
}
49
53
public
function
testUserId
()
54
{
55
$request = $this->
getRequest
(
56
[
57
"user_id"
=>
"57"
58
],
59
[]
60
);
61
62
$this->assertEquals(
63
57,
64
$request->getUserId()
65
);
66
}
67
71
public
function
testLPEdit
()
72
{
73
$request = $this->
getRequest
(
74
[
75
],
76
[
77
"lp_edit"
=>
"1"
78
]
79
);
80
81
$this->assertEquals(
82
1,
83
$request->getLPEdit()
84
);
85
}
86
}
$data
$data
Definition:
ltiregistration.php:29
ILIAS\UI\examples\Layout\Page\Standard\$refinery
$refinery
Definition:
ui.php:137
InfoScreenStandardGUIRequestTest\testUserId
testUserId()
Test user id.
Definition:
InfoScreenStandardGUIRequestTest.php:53
ILIAS
Interface Observer Contains several chained tasks and infos about them.
Definition:
AccessControl.php:21
InfoScreenStandardGUIRequestTest\testLPEdit
testLPEdit()
Test lp edit.
Definition:
InfoScreenStandardGUIRequestTest.php:71
Services
Factory
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
ILIAS\Data\Factory
Builds data types.
Definition:
Factory.php:35
InfoScreenStandardGUIRequestTest\getRequest
getRequest(array $get, array $post)
Definition:
InfoScreenStandardGUIRequestTest.php:36
InfoScreenStandardGUIRequestTest\tearDown
tearDown()
Definition:
InfoScreenStandardGUIRequestTest.php:32
StandardGUIRequest
InfoScreenStandardGUIRequestTest
Test clipboard repository.
Definition:
InfoScreenStandardGUIRequestTest.php:30
ILIAS\InfoScreen\StandardGUIRequest
Definition:
class.StandardGUIRequest.php:27
$post
$post
Definition:
ltitoken.php:46
TestCase
TestCase
components
ILIAS
InfoScreen
tests
InfoScreenStandardGUIRequestTest.php
Generated on Thu Apr 10 2025 23:03:25 for ILIAS by
1.8.13 (using
Doxyfile
)