ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
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.

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,
39 $get,
40 $post
41 );
42 }
$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 testExpressionKey(), testModalSignalId(), and testValue().

+ 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.

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)

References getRequest().

+ Here is the call graph for this function:

◆ testModalSignalId()

LikeStandardGUIRequestTest::testModalSignalId ( )

Definition at line 74 of file LikeStandardGUIRequestTest.php.

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 }

References getRequest().

+ Here is the call graph for this function:

◆ testValue()

LikeStandardGUIRequestTest::testValue ( )

Definition at line 44 of file LikeStandardGUIRequestTest.php.

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 }

References getRequest().

+ Here is the call graph for this function:

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