ILIAS  trunk Revision v11.0_alpha-1769-g99a433fe2dc
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
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 24 of file ImprintStandardGUIRequestTest.php.

Member Function Documentation

◆ getRequest()

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

Definition at line 32 of file ImprintStandardGUIRequestTest.php.

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

Referenced by testBaseClass().

32  : \ILIAS\Imprint\StandardGUIRequest
33  {
34  $http_mock = $this->createMock(ILIAS\HTTP\Services::class);
35  $lng_mock = $this->createMock(ilLanguage::class);
36  $data = new \ILIAS\Data\Factory();
37  $refinery = new \ILIAS\Refinery\Factory($data, $lng_mock);
38  return new \ILIAS\Imprint\StandardGUIRequest(
39  $http_mock,
40  $refinery,
41  $get,
42  $post
43  );
44  }
Interface Observer Contains several chained tasks and infos about them.
$post
Definition: ltitoken.php:46
+ Here is the caller graph for this function:

◆ tearDown()

ImprintStandardGUIRequestTest::tearDown ( )
protected

Definition at line 28 of file ImprintStandardGUIRequestTest.php.

28  : void
29  {
30  }

◆ testBaseClass()

ImprintStandardGUIRequestTest::testBaseClass ( )

Definition at line 46 of file ImprintStandardGUIRequestTest.php.

References getRequest().

46  : void
47  {
48  $request = $this->getRequest(
49  [
50  "baseClass" => "MyClass"
51  ],
52  []
53  );
54 
55  $this->assertEquals(
56  "MyClass",
57  $request->getBaseClass()
58  );
59  }
+ Here is the call graph for this function:

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