ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
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 24 of file ItemGroupStandardGUIRequestTest.php.

Member Function Documentation

◆ getRequest()

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

Definition at line 32 of file ItemGroupStandardGUIRequestTest.php.

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\ItemGroup\StandardGUIRequest(
39 $http_mock,
41 $get,
42 $post
43 );
44 }
$post
Definition: ltitoken.php:46
Interface Observer \BackgroundTasks Contains several chained tasks and infos about them.

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

Referenced by testItems().

+ Here is the caller graph for this function:

◆ tearDown()

ItemGroupStandardGUIRequestTest::tearDown ( )
protected

Definition at line 28 of file ItemGroupStandardGUIRequestTest.php.

28 : void
29 {
30 }

◆ testItems()

ItemGroupStandardGUIRequestTest::testItems ( )

Definition at line 46 of file ItemGroupStandardGUIRequestTest.php.

47 {
48 $request = $this->getRequest(
49 [
50 ],
51 [
52 "items" => ["3", "7"]
53 ]
54 );
55
56 $this->assertEquals(
57 [3,7],
58 $request->getItems()
59 );
60 }

References getRequest().

+ Here is the call graph for this function:

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