ILIAS  release_8 Revision v8.24
ImprintStandardGUIRequestTest Class Reference
+ Inheritance diagram for ImprintStandardGUIRequestTest:
+ Collaboration diagram for ImprintStandardGUIRequestTest:

Public Member Functions

 testBaseClass ()
 

Protected Member Functions

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

Detailed Description

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

Definition at line 8 of file ImprintStandardGUIRequestTest.php.

Member Function Documentation

◆ getRequest()

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

Definition at line 16 of file ImprintStandardGUIRequestTest.php.

17 {
18 $http_mock = $this->createMock(ILIAS\HTTP\Services::class);
19 $lng_mock = $this->createMock(ilLanguage::class);
20 $data = new \ILIAS\Data\Factory();
21 $refinery = new \ILIAS\Refinery\Factory($data, $lng_mock);
22 return new \ILIAS\Imprint\StandardGUIRequest(
23 $http_mock,
25 $get,
26 $post
27 );
28 }
$post
Definition: ltitoken.php:49
Refinery Factory $refinery
Class ChatMainBarProvider \MainMenu\Provider.

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

Referenced by testBaseClass().

+ Here is the caller graph for this function:

◆ tearDown()

ImprintStandardGUIRequestTest::tearDown ( )
protected

Definition at line 12 of file ImprintStandardGUIRequestTest.php.

12 : void
13 {
14 }

◆ testBaseClass()

ImprintStandardGUIRequestTest::testBaseClass ( )

Definition at line 30 of file ImprintStandardGUIRequestTest.php.

30 : void
31 {
32 $request = $this->getRequest(
33 [
34 "baseClass" => "MyClass"
35 ],
36 []
37 );
38
39 $this->assertEquals(
40 "MyClass",
41 $request->getBaseClass()
42 );
43 }

References getRequest().

+ Here is the call graph for this function:

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