ILIAS  release_8 Revision v8.24
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 8 of file LikeStandardGUIRequestTest.php.

Member Function Documentation

◆ getRequest()

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

Definition at line 14 of file LikeStandardGUIRequestTest.php.

15 {
16 $http_mock = $this->createMock(ILIAS\HTTP\Services::class);
17 $lng_mock = $this->createMock(ilLanguage::class);
18 $data = new \ILIAS\Data\Factory();
19 $refinery = new \ILIAS\Refinery\Factory($data, $lng_mock);
20 return new \ILIAS\Like\StandardGUIRequest(
21 $http_mock,
23 $get,
24 $post
25 );
26 }
$post
Definition: ltitoken.php:49
Refinery Factory $refinery
Class ChatMainBarProvider \MainMenu\Provider.

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

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

+ Here is the caller graph for this function:

◆ tearDown()

LikeStandardGUIRequestTest::tearDown ( )
protected

Definition at line 10 of file LikeStandardGUIRequestTest.php.

10 : void
11 {
12 }

◆ testExpressionKey()

LikeStandardGUIRequestTest::testExpressionKey ( )

Definition at line 43 of file LikeStandardGUIRequestTest.php.

43 : void
44 {
45 $request = $this->getRequest(
46 [
47 "exp" => "2"
48 ],
49 []
50 );
51
52 $this->assertEquals(
53 2,
54 $request->getExpressionKey()
55 );
56 }
getRequest(array $get, array $post)

References getRequest().

+ Here is the call graph for this function:

◆ testModalSignalId()

LikeStandardGUIRequestTest::testModalSignalId ( )

Definition at line 58 of file LikeStandardGUIRequestTest.php.

58 : void
59 {
60 $request = $this->getRequest(
61 [
62 "modal_show_sig_id" => "yxc12"
63 ],
64 []
65 );
66
67 $this->assertEquals(
68 "yxc12",
69 $request->getModalSignalId()
70 );
71 }

References getRequest().

+ Here is the call graph for this function:

◆ testValue()

LikeStandardGUIRequestTest::testValue ( )

Definition at line 28 of file LikeStandardGUIRequestTest.php.

28 : void
29 {
30 $request = $this->getRequest(
31 [
32 "val" => "5"
33 ],
34 []
35 );
36
37 $this->assertEquals(
38 5,
39 $request->getValue()
40 );
41 }

References getRequest().

+ Here is the call graph for this function:

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