ILIAS
release_10 Revision v10.1-43-ga1241a92c2f
◀ ilDoc Overview
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:29
ILIAS\UI\examples\Layout\Page\Standard\$refinery
$refinery
Definition:
ui.php:121
LearningHistoryStandardGUIRequestTest\testItems
testItems()
Definition:
LearningHistoryStandardGUIRequestTest.php:28
ILIAS
Interface Observer Contains several chained tasks and infos about them.
Definition:
AccessControl.php:21
LearningHistoryStandardGUIRequestTest
Definition:
LearningHistoryStandardGUIRequestTest.php:8
Services
LearningHistoryStandardGUIRequestTest\getRequest
getRequest(array $get, array $post)
Definition:
LearningHistoryStandardGUIRequestTest.php:14
LearningHistoryStandardGUIRequestTest\tearDown
tearDown()
Definition:
LearningHistoryStandardGUIRequestTest.php:10
$post
$post
Definition:
ltitoken.php:46
TestCase
components
ILIAS
LearningHistory
tests
LearningHistoryStandardGUIRequestTest.php
Generated on Wed Sep 10 2025 15:15:49 for ILIAS by
1.8.13 (using
Doxyfile
)