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

Public Member Functions

 testItems ()
 

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 ItemGroupStandardGUIRequestTest.php.

Member Function Documentation

◆ getRequest()

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

Definition at line 16 of file ItemGroupStandardGUIRequestTest.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\ItemGroup\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 testItems().

+ Here is the caller graph for this function:

◆ tearDown()

ItemGroupStandardGUIRequestTest::tearDown ( )
protected

Definition at line 12 of file ItemGroupStandardGUIRequestTest.php.

12 : void
13 {
14 }

◆ testItems()

ItemGroupStandardGUIRequestTest::testItems ( )

Definition at line 30 of file ItemGroupStandardGUIRequestTest.php.

31 {
32 $request = $this->getRequest(
33 [
34 ],
35 [
36 "items" => ["3", "7"]
37 ]
38 );
39
40 $this->assertEquals(
41 [3,7],
42 $request->getItems()
43 );
44 }

References getRequest().

+ Here is the call graph for this function:

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