ILIAS  release_8 Revision v8.24
InfoScreenStandardGUIRequestTest Class Reference

Test clipboard repository. More...

+ Inheritance diagram for InfoScreenStandardGUIRequestTest:
+ Collaboration diagram for InfoScreenStandardGUIRequestTest:

Public Member Functions

 testUserId ()
 Test user id. More...
 
 testLPEdit ()
 Test lp edit. More...
 

Protected Member Functions

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

Detailed Description

Test clipboard repository.

Author
Alexander Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de

Definition at line 14 of file InfoScreenStandardGUIRequestTest.php.

Member Function Documentation

◆ getRequest()

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

Definition at line 20 of file InfoScreenStandardGUIRequestTest.php.

21 {
22 $http_mock = $this->createMock(ILIAS\HTTP\Services::class);
23 $lng_mock = $this->createMock(ilLanguage::class);
24 $data = new Factory();
25 $refinery = new \ILIAS\Refinery\Factory($data, $lng_mock);
26 return new StandardGUIRequest(
27 $http_mock,
29 $get,
30 $post
31 );
32 }
Builds data types.
Definition: Factory.php:21
$post
Definition: ltitoken.php:49
Refinery Factory $refinery
Class ChatMainBarProvider \MainMenu\Provider.

References $data, $post, and ILIAS\Repository\$refinery.

Referenced by testLPEdit(), and testUserId().

+ Here is the caller graph for this function:

◆ tearDown()

InfoScreenStandardGUIRequestTest::tearDown ( )
protected

Definition at line 16 of file InfoScreenStandardGUIRequestTest.php.

16 : void
17 {
18 }

◆ testLPEdit()

InfoScreenStandardGUIRequestTest::testLPEdit ( )

Test lp edit.

Definition at line 55 of file InfoScreenStandardGUIRequestTest.php.

56 {
57 $request = $this->getRequest(
58 [
59 ],
60 [
61 "lp_edit" => "1"
62 ]
63 );
64
65 $this->assertEquals(
66 1,
67 $request->getLPEdit()
68 );
69 }

References getRequest().

+ Here is the call graph for this function:

◆ testUserId()

InfoScreenStandardGUIRequestTest::testUserId ( )

Test user id.

Definition at line 37 of file InfoScreenStandardGUIRequestTest.php.

38 {
39 $request = $this->getRequest(
40 [
41 "user_id" => "57"
42 ],
43 []
44 );
45
46 $this->assertEquals(
47 57,
48 $request->getUserId()
49 );
50 }

References getRequest().

+ Here is the call graph for this function:

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