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

Member Function Documentation

◆ getRequest()

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

Definition at line 39 of file TableGUIRequestTest.php.

40 {
41 $http_mock = $this->createMock(ILIAS\HTTP\Services::class);
42 $lng_mock = $this->createMock(ilLanguage::class);
43 $data = new \ILIAS\Data\Factory();
44 $refinery = new \ILIAS\Refinery\Factory($data, $lng_mock);
45 return new \ILIAS\Table\TableGUIRequest(
46 $http_mock,
48 $get,
49 $post
50 );
51 }
$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 testRows(), and testTableId().

+ Here is the caller graph for this function:

◆ setUp()

TableGUIRequestTest::setUp ( )
protected

Definition at line 30 of file TableGUIRequestTest.php.

30 : void
31 {
32 parent::setUp();
33 }

◆ tearDown()

TableGUIRequestTest::tearDown ( )
protected

Definition at line 35 of file TableGUIRequestTest.php.

35 : void
36 {
37 }

◆ testRows()

TableGUIRequestTest::testRows ( )

Definition at line 68 of file TableGUIRequestTest.php.

68 : void
69 {
70 $request = $this->getRequest(
71 [
72 "id_trows" => "22"
73 ],
74 []
75 );
76
77 $this->assertEquals(
78 22,
79 $request->getRows("id")
80 );
81 }
getRequest(array $get, array $post)

References getRequest().

+ Here is the call graph for this function:

◆ testTableId()

TableGUIRequestTest::testTableId ( )

Definition at line 53 of file TableGUIRequestTest.php.

53 : void
54 {
55 $request = $this->getRequest(
56 [
57 "table_id" => "tid"
58 ],
59 []
60 );
61
62 $this->assertEquals(
63 "tid",
64 $request->getTableId()
65 );
66 }

References getRequest().

+ Here is the call graph for this function:

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