ILIAS  trunk Revision v11.0_alpha-1713-gd8962da2f67
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
FoldStandardGUIRequestTest Class Reference

Test clipboard repository. More...

+ Inheritance diagram for FoldStandardGUIRequestTest:
+ Collaboration diagram for FoldStandardGUIRequestTest:

Public Member Functions

 testRefId ()
 Test ref id. More...
 
 testNoRefId ()
 Test no ref id. More...
 
 testBaseClass ()
 Test base class. More...
 
 testCmdClass ()
 Test cmd class. More...
 
 testUserId ()
 Test user id. More...
 

Protected Member Functions

 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 28 of file FoldStandardGUIRequestTest.php.

Member Function Documentation

◆ getRequest()

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

Definition at line 34 of file FoldStandardGUIRequestTest.php.

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

Referenced by testBaseClass(), testCmdClass(), testNoRefId(), testRefId(), and testUserId().

34  : \ILIAS\Folder\StandardGUIRequest
35  {
36  $http_mock = $this->createMock(ILIAS\HTTP\Services::class);
37  $lng_mock = $this->createMock(ilLanguage::class);
38  $data = new \ILIAS\Data\Factory();
39  $refinery = new \ILIAS\Refinery\Factory($data, $lng_mock);
40  return new \ILIAS\Folder\StandardGUIRequest(
41  $http_mock,
42  $refinery,
43  $get,
44  $post
45  );
46  }
Interface Observer Contains several chained tasks and infos about them.
$post
Definition: ltitoken.php:46
+ Here is the caller graph for this function:

◆ tearDown()

FoldStandardGUIRequestTest::tearDown ( )
protected

Definition at line 30 of file FoldStandardGUIRequestTest.php.

30  : void
31  {
32  }

◆ testBaseClass()

FoldStandardGUIRequestTest::testBaseClass ( )

Test base class.

Definition at line 86 of file FoldStandardGUIRequestTest.php.

References getRequest().

86  : void
87  {
88  $request = $this->getRequest(
89  [
90  "baseClass" => "myClass"
91  ],
92  []
93  );
94 
95  $this->assertEquals(
96  "myClass",
97  $request->getBaseClass()
98  );
99  }
getRequest(array $get, array $post)
+ Here is the call graph for this function:

◆ testCmdClass()

FoldStandardGUIRequestTest::testCmdClass ( )

Test cmd class.

Definition at line 104 of file FoldStandardGUIRequestTest.php.

References getRequest().

104  : void
105  {
106  $request = $this->getRequest(
107  [
108  "cmdClass" => "myClass"
109  ],
110  []
111  );
112 
113  $this->assertEquals(
114  "myClass",
115  $request->getCmdClass()
116  );
117  }
getRequest(array $get, array $post)
+ Here is the call graph for this function:

◆ testNoRefId()

FoldStandardGUIRequestTest::testNoRefId ( )

Test no ref id.

Definition at line 69 of file FoldStandardGUIRequestTest.php.

References getRequest().

69  : void
70  {
71  $request = $this->getRequest(
72  [
73  ],
74  []
75  );
76 
77  $this->assertEquals(
78  0,
79  $request->getRefId()
80  );
81  }
getRequest(array $get, array $post)
+ Here is the call graph for this function:

◆ testRefId()

FoldStandardGUIRequestTest::testRefId ( )

Test ref id.

Definition at line 51 of file FoldStandardGUIRequestTest.php.

References getRequest().

51  : void
52  {
53  $request = $this->getRequest(
54  [
55  "ref_id" => "5"
56  ],
57  []
58  );
59 
60  $this->assertEquals(
61  5,
62  $request->getRefId()
63  );
64  }
getRequest(array $get, array $post)
+ Here is the call graph for this function:

◆ testUserId()

FoldStandardGUIRequestTest::testUserId ( )

Test user id.

Definition at line 122 of file FoldStandardGUIRequestTest.php.

References getRequest().

122  : void
123  {
124  $request = $this->getRequest(
125  [
126  "user_id" => "4"
127  ],
128  []
129  );
130 
131  $this->assertEquals(
132  4,
133  $request->getUserId()
134  );
135  }
getRequest(array $get, array $post)
+ Here is the call graph for this function:

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