ILIAS  trunk Revision v11.0_alpha-1713-gd8962da2f67
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
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.

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

Referenced by testLetter(), testRefId(), and testTermId().

28  : \ILIAS\Glossary\Presentation\PresentationGUIRequest
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,
36  $refinery,
37  $get,
38  $post
39  );
40  }
Interface Observer Contains several chained tasks and infos about them.
$post
Definition: ltitoken.php:46
+ Here is the caller graph for this function:

◆ testLetter()

GloPresentationGUIRequestTest::testLetter ( )

Definition at line 57 of file GloPresentationGUIRequestTest.php.

References getRequest().

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  }
+ Here is the call graph for this function:

◆ testRefId()

GloPresentationGUIRequestTest::testRefId ( )

Definition at line 42 of file GloPresentationGUIRequestTest.php.

References getRequest().

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  }
+ Here is the call graph for this function:

◆ testTermId()

GloPresentationGUIRequestTest::testTermId ( )

Definition at line 72 of file GloPresentationGUIRequestTest.php.

References getRequest().

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  }
+ Here is the call graph for this function:

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