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
LearningHistoryStandardGUIRequestTest.php
Go to the documentation of this file.
1
<?php
2
3
use
PHPUnit\Framework\TestCase
;
4
8
class
LearningHistoryStandardGUIRequestTest
extends
TestCase
9
{
10
protected
function
tearDown
(): void
11
{
12
}
13
14
protected
function
getRequest
(array $get, array
$post
): \
ILIAS
\LearningHistory\StandardGUIRequest
15
{
16
$http_mock = $this->createMock(
ILIAS
\
HTTP
\Services::class);
17
$lng_mock = $this->createMock(ilLanguage::class);
18
$data
= new \ILIAS\Data\Factory();
19
$refinery
= new \ILIAS\Refinery\Factory(
$data
, $lng_mock);
20
return
new \ILIAS\LearningHistory\StandardGUIRequest(
21
$http_mock,
22
$refinery
,
23
$get,
24
$post
25
);
26
}
27
28
public
function
testItems
(): void
29
{
30
$request = $this->
getRequest
(
31
[
32
"to_ts"
=>
"123"
33
],
34
[
35
]
36
);
37
38
$this->assertEquals(
39
123,
40
$request->getToTS()
41
);
42
}
43
}
$data
$data
Definition:
ltiregistration.php:31
LearningHistoryStandardGUIRequestTest\testItems
testItems()
Definition:
LearningHistoryStandardGUIRequestTest.php:28
ILIAS
Class ChatMainBarProvider .
LearningHistoryStandardGUIRequestTest
Definition:
LearningHistoryStandardGUIRequestTest.php:8
HTTP
LearningHistoryStandardGUIRequestTest\getRequest
getRequest(array $get, array $post)
Definition:
LearningHistoryStandardGUIRequestTest.php:14
LearningHistoryStandardGUIRequestTest\tearDown
tearDown()
Definition:
LearningHistoryStandardGUIRequestTest.php:10
$post
$post
Definition:
ltitoken.php:49
TestCase
ILIAS\Repository\$refinery
Refinery Factory $refinery
Definition:
trait.BaseGUIRequest.php:36
Services
LearningHistory
test
LearningHistoryStandardGUIRequestTest.php
Generated on Tue Apr 1 2025 22:02:23 for ILIAS by
1.8.13 (using
Doxyfile
)