ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
LearningHistoryStandardGUIRequestTest Class Reference
+ Inheritance diagram for LearningHistoryStandardGUIRequestTest:
+ Collaboration diagram for LearningHistoryStandardGUIRequestTest:

Public Member Functions

 testItems ()
 

Protected Member Functions

 tearDown ()
 
 getRequest (array $get, array $post)
 

Detailed Description

Member Function Documentation

◆ getRequest()

LearningHistoryStandardGUIRequestTest::getRequest ( array  $get,
array  $post 
)
protected

Definition at line 30 of file LearningHistoryStandardGUIRequestTest.php.

31 {
32 $http_mock = $this->createMock(ILIAS\HTTP\Services::class);
33 $lng_mock = $this->createMock(ilLanguage::class);
34 $data = new \ILIAS\Data\Factory();
35 $refinery = new \ILIAS\Refinery\Factory($data, $lng_mock);
36 return new \ILIAS\LearningHistory\StandardGUIRequest(
37 $http_mock,
39 $get,
40 $post
41 );
42 }
$post
Definition: ltitoken.php:46
Interface Observer \BackgroundTasks Contains several chained tasks and infos about them.

References $data, $post, and ILIAS\UI\examples\Layout\Page\Standard\$refinery.

Referenced by testItems().

+ Here is the caller graph for this function:

◆ tearDown()

LearningHistoryStandardGUIRequestTest::tearDown ( )
protected

Definition at line 26 of file LearningHistoryStandardGUIRequestTest.php.

26 : void
27 {
28 }

◆ testItems()

LearningHistoryStandardGUIRequestTest::testItems ( )

Definition at line 44 of file LearningHistoryStandardGUIRequestTest.php.

44 : void
45 {
46 $request = $this->getRequest(
47 [
48 "to_ts" => "123"
49 ],
50 [
51 ]
52 );
53
54 $this->assertEquals(
55 123,
56 $request->getToTS()
57 );
58 }

References getRequest().

+ Here is the call graph for this function:

The documentation for this class was generated from the following file: