ILIAS  trunk Revision v11.0_alpha-1753-gb21ca8c4367
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
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 30 of file InfoScreenStandardGUIRequestTest.php.

Member Function Documentation

◆ getRequest()

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

Definition at line 36 of file InfoScreenStandardGUIRequestTest.php.

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

Referenced by testLPEdit(), and testUserId().

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  }
Interface Observer Contains several chained tasks and infos about them.
Builds data types.
Definition: Factory.php:35
$post
Definition: ltitoken.php:46
+ Here is the caller graph for this function:

◆ tearDown()

InfoScreenStandardGUIRequestTest::tearDown ( )
protected

Definition at line 32 of file InfoScreenStandardGUIRequestTest.php.

32  : void
33  {
34  }

◆ testLPEdit()

InfoScreenStandardGUIRequestTest::testLPEdit ( )

Test lp edit.

Definition at line 71 of file InfoScreenStandardGUIRequestTest.php.

References getRequest().

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  }
+ Here is the call graph for this function:

◆ testUserId()

InfoScreenStandardGUIRequestTest::testUserId ( )

Test user id.

Definition at line 53 of file InfoScreenStandardGUIRequestTest.php.

References getRequest().

54  {
55  $request = $this->getRequest(
56  [
57  "user_id" => "57"
58  ],
59  []
60  );
61 
62  $this->assertEquals(
63  57,
64  $request->getUserId()
65  );
66  }
+ Here is the call graph for this function:

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