ILIAS  release_8 Revision v8.24
AccordionStandardGUIRequestTest Class Reference

Test clipboard repository. More...

+ Inheritance diagram for AccordionStandardGUIRequestTest:
+ Collaboration diagram for AccordionStandardGUIRequestTest:

Public Member Functions

 testUserId ()
 
 testTabNr ()
 

Protected Member Functions

 setUp ()
 
 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 AccordionStandardGUIRequestTest.php.

Member Function Documentation

◆ getRequest()

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

Definition at line 21 of file AccordionStandardGUIRequestTest.php.

22 {
23 $http_mock = $this->createMock(ILIAS\HTTP\Services::class);
24 $lng_mock = $this->createMock(ilLanguage::class);
25 $data = new \ILIAS\Data\Factory();
26 $refinery = new \ILIAS\Refinery\Factory($data, $lng_mock);
27 return new \ILIAS\Accordion\StandardGUIRequest(
28 $http_mock,
30 $get,
31 $post
32 );
33 }
$post
Definition: ltitoken.php:49
Refinery Factory $refinery
Class ChatMainBarProvider \MainMenu\Provider.

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

Referenced by testTabNr(), and testUserId().

+ Here is the caller graph for this function:

◆ setUp()

AccordionStandardGUIRequestTest::setUp ( )
protected

Definition at line 12 of file AccordionStandardGUIRequestTest.php.

12 : void
13 {
14 parent::setUp();
15 }

◆ tearDown()

AccordionStandardGUIRequestTest::tearDown ( )
protected

Definition at line 17 of file AccordionStandardGUIRequestTest.php.

17 : void
18 {
19 }

◆ testTabNr()

AccordionStandardGUIRequestTest::testTabNr ( )

Definition at line 51 of file AccordionStandardGUIRequestTest.php.

51 : void
52 {
53 $request = $this->getRequest(
54 [
55 "tab_nr" => "7"
56 ],
57 []
58 );
59
60 $this->assertEquals(
61 7,
62 $request->getTabNr()
63 );
64 }

References getRequest().

+ Here is the call graph for this function:

◆ testUserId()

AccordionStandardGUIRequestTest::testUserId ( )

Definition at line 35 of file AccordionStandardGUIRequestTest.php.

35 : void
36 {
37 $request = $this->getRequest(
38 [
39 "user_id" => "5"
40 ],
41 []
42 );
43
44 $this->assertEquals(
45 5,
46 $request->getUserId()
47 );
48 }

References getRequest().

+ Here is the call graph for this function:

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