ILIAS  release_8 Revision v8.24
AdveStandardGUIRequestTest Class Reference

Test clipboard repository. More...

+ Inheritance diagram for AdveStandardGUIRequestTest:
+ Collaboration diagram for AdveStandardGUIRequestTest:

Public Member Functions

 testGroup ()
 Test group. 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 10 of file AdveStandardGUIRequestTest.php.

Member Function Documentation

◆ getRequest()

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

Definition at line 16 of file AdveStandardGUIRequestTest.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\AdvancedEditing\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 testGroup().

+ Here is the caller graph for this function:

◆ tearDown()

AdveStandardGUIRequestTest::tearDown ( )
protected

Definition at line 12 of file AdveStandardGUIRequestTest.php.

12 : void
13 {
14 }

◆ testGroup()

AdveStandardGUIRequestTest::testGroup ( )

Test group.

Definition at line 33 of file AdveStandardGUIRequestTest.php.

33 : void
34 {
35 $request = $this->getRequest(
36 [
37 "grp" => "5"
38 ],
39 []
40 );
41
42 $this->assertEquals(
43 "5",
44 $request->getGroup()
45 );
46 }
getRequest(array $get, array $post)

References getRequest().

+ Here is the call graph for this function:

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