ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
GloPresentationGUIRequestTest Class Reference

Test clipboard repository. More...

+ Inheritance diagram for GloPresentationGUIRequestTest:
+ Collaboration diagram for GloPresentationGUIRequestTest:

Public Member Functions

 testRefId ()
 
 testLetter ()
 
 testTermId ()
 

Protected Member Functions

 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 26 of file GloPresentationGUIRequestTest.php.

Member Function Documentation

◆ getRequest()

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

Definition at line 28 of file GloPresentationGUIRequestTest.php.

29 {
30 $http_mock = $this->createMock(ILIAS\HTTP\Services::class);
31 $lng_mock = $this->createMock(ilLanguage::class);
32 $data = new \ILIAS\Data\Factory();
33 $refinery = new \ILIAS\Refinery\Factory($data, $lng_mock);
34 return new \ILIAS\Glossary\Presentation\PresentationGUIRequest(
35 $http_mock,
37 $get,
38 $post
39 );
40 }
$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 testLetter(), testRefId(), and testTermId().

+ Here is the caller graph for this function:

◆ testLetter()

GloPresentationGUIRequestTest::testLetter ( )

Definition at line 57 of file GloPresentationGUIRequestTest.php.

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

References getRequest().

+ Here is the call graph for this function:

◆ testRefId()

GloPresentationGUIRequestTest::testRefId ( )

Definition at line 42 of file GloPresentationGUIRequestTest.php.

42 : void
43 {
44 $request = $this->getRequest(
45 [
46 "ref_id" => "5"
47 ],
48 []
49 );
50
51 $this->assertEquals(
52 5,
53 $request->getRefId()
54 );
55 }

References getRequest().

+ Here is the call graph for this function:

◆ testTermId()

GloPresentationGUIRequestTest::testTermId ( )

Definition at line 72 of file GloPresentationGUIRequestTest.php.

72 : void
73 {
74 $request = $this->getRequest(
75 [
76 "term_id" => "14"
77 ],
78 []
79 );
80
81 $this->assertEquals(
82 14,
83 $request->getTermId()
84 );
85 }

References getRequest().

+ Here is the call graph for this function:

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