ILIAS  trunk Revision v11.0_alpha-1715-g7fc467680fb
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
LikeStandardGUIRequestTest Class Reference
+ Inheritance diagram for LikeStandardGUIRequestTest:
+ Collaboration diagram for LikeStandardGUIRequestTest:

Public Member Functions

 testValue ()
 
 testExpressionKey ()
 
 testModalSignalId ()
 

Protected Member Functions

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

Detailed Description

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

Definition at line 24 of file LikeStandardGUIRequestTest.php.

Member Function Documentation

◆ getRequest()

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

Definition at line 30 of file LikeStandardGUIRequestTest.php.

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

Referenced by testExpressionKey(), testModalSignalId(), and testValue().

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

◆ tearDown()

LikeStandardGUIRequestTest::tearDown ( )
protected

Definition at line 26 of file LikeStandardGUIRequestTest.php.

26  : void
27  {
28  }

◆ testExpressionKey()

LikeStandardGUIRequestTest::testExpressionKey ( )

Definition at line 59 of file LikeStandardGUIRequestTest.php.

References getRequest().

59  : void
60  {
61  $request = $this->getRequest(
62  [
63  "exp" => "2"
64  ],
65  []
66  );
67 
68  $this->assertEquals(
69  2,
70  $request->getExpressionKey()
71  );
72  }
getRequest(array $get, array $post)
+ Here is the call graph for this function:

◆ testModalSignalId()

LikeStandardGUIRequestTest::testModalSignalId ( )

Definition at line 74 of file LikeStandardGUIRequestTest.php.

References getRequest().

74  : void
75  {
76  $request = $this->getRequest(
77  [
78  "modal_show_sig_id" => "yxc12"
79  ],
80  []
81  );
82 
83  $this->assertEquals(
84  "yxc12",
85  $request->getModalSignalId()
86  );
87  }
getRequest(array $get, array $post)
+ Here is the call graph for this function:

◆ testValue()

LikeStandardGUIRequestTest::testValue ( )

Definition at line 44 of file LikeStandardGUIRequestTest.php.

References getRequest().

44  : void
45  {
46  $request = $this->getRequest(
47  [
48  "val" => "5"
49  ],
50  []
51  );
52 
53  $this->assertEquals(
54  5,
55  $request->getValue()
56  );
57  }
getRequest(array $get, array $post)
+ Here is the call graph for this function:

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