ILIAS  release_8 Revision v8.24
TableGUIRequestTest Class Reference

Test evaluation request class. More...

+ Inheritance diagram for TableGUIRequestTest:
+ Collaboration diagram for TableGUIRequestTest:

Public Member Functions

 testTableId ()
 
 testRows ()
 

Protected Member Functions

 setUp ()
 
 tearDown ()
 
 getRequest (array $get, array $post)
 

Detailed Description

Test evaluation request class.

Author
Alexander Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de

Definition at line 10 of file TableGUIRequestTest.php.

Member Function Documentation

◆ getRequest()

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

Definition at line 23 of file TableGUIRequestTest.php.

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

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

Referenced by testRows(), and testTableId().

+ Here is the caller graph for this function:

◆ setUp()

TableGUIRequestTest::setUp ( )
protected

Definition at line 14 of file TableGUIRequestTest.php.

14 : void
15 {
16 parent::setUp();
17 }

◆ tearDown()

TableGUIRequestTest::tearDown ( )
protected

Definition at line 19 of file TableGUIRequestTest.php.

19 : void
20 {
21 }

◆ testRows()

TableGUIRequestTest::testRows ( )

Definition at line 52 of file TableGUIRequestTest.php.

52 : void
53 {
54 $request = $this->getRequest(
55 [
56 "id_trows" => "22"
57 ],
58 []
59 );
60
61 $this->assertEquals(
62 22,
63 $request->getRows("id")
64 );
65 }
getRequest(array $get, array $post)

References getRequest().

+ Here is the call graph for this function:

◆ testTableId()

TableGUIRequestTest::testTableId ( )

Definition at line 37 of file TableGUIRequestTest.php.

37 : void
38 {
39 $request = $this->getRequest(
40 [
41 "table_id" => "tid"
42 ],
43 []
44 );
45
46 $this->assertEquals(
47 "tid",
48 $request->getTableId()
49 );
50 }

References getRequest().

+ Here is the call graph for this function:

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