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

Member Function Documentation

◆ getRequest()

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

Definition at line 37 of file AccordionStandardGUIRequestTest.php.

38 {
39 $http_mock = $this->createMock(ILIAS\HTTP\Services::class);
40 $lng_mock = $this->createMock(ilLanguage::class);
41 $data = new \ILIAS\Data\Factory();
42 $refinery = new \ILIAS\Refinery\Factory($data, $lng_mock);
43 return new \ILIAS\Accordion\StandardGUIRequest(
44 $http_mock,
46 $get,
47 $post
48 );
49 }
$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 testTabNr(), and testUserId().

+ Here is the caller graph for this function:

◆ setUp()

AccordionStandardGUIRequestTest::setUp ( )
protected

Definition at line 28 of file AccordionStandardGUIRequestTest.php.

28 : void
29 {
30 parent::setUp();
31 }

◆ tearDown()

AccordionStandardGUIRequestTest::tearDown ( )
protected

Definition at line 33 of file AccordionStandardGUIRequestTest.php.

33 : void
34 {
35 }

◆ testTabNr()

AccordionStandardGUIRequestTest::testTabNr ( )

Definition at line 67 of file AccordionStandardGUIRequestTest.php.

67 : void
68 {
69 $request = $this->getRequest(
70 [
71 "tab_nr" => "7"
72 ],
73 []
74 );
75
76 $this->assertEquals(
77 7,
78 $request->getTabNr()
79 );
80 }

References getRequest().

+ Here is the call graph for this function:

◆ testUserId()

AccordionStandardGUIRequestTest::testUserId ( )

Definition at line 51 of file AccordionStandardGUIRequestTest.php.

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

References getRequest().

+ Here is the call graph for this function:

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