ILIAS  trunk Revision v11.0_alpha-1769-g99a433fe2dc
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ContentStyleStandardGUIRequestTest Class Reference

Test clipboard repository. More...

+ Inheritance diagram for ContentStyleStandardGUIRequestTest:
+ Collaboration diagram for ContentStyleStandardGUIRequestTest:

Public Member Functions

 testRefId ()
 
 testTemplateId ()
 
 testCharacteristics ()
 

Protected Member Functions

 tearDown ()
 
 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 30 of file ContentStyleStandardGUIRequestTest.php.

Member Function Documentation

◆ getRequest()

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

Definition at line 36 of file ContentStyleStandardGUIRequestTest.php.

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

Referenced by testCharacteristics(), testRefId(), and testTemplateId().

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

◆ tearDown()

ContentStyleStandardGUIRequestTest::tearDown ( )
protected

Definition at line 32 of file ContentStyleStandardGUIRequestTest.php.

32  : void
33  {
34  }

◆ testCharacteristics()

ContentStyleStandardGUIRequestTest::testCharacteristics ( )

Definition at line 81 of file ContentStyleStandardGUIRequestTest.php.

References getRequest().

81  : void
82  {
83  $request = $this->getRequest(
84  [
85  ],
86  [
87  "char" => [
88  "Foo",
89  "Bar"
90  ]
91  ]
92  );
93 
94  $this->assertEquals(
95  ["Foo", "Bar"],
96  $request->getCharacteristics()
97  );
98  }
+ Here is the call graph for this function:

◆ testRefId()

ContentStyleStandardGUIRequestTest::testRefId ( )

Definition at line 50 of file ContentStyleStandardGUIRequestTest.php.

References getRequest().

50  : void
51  {
52  $request = $this->getRequest(
53  [
54  "ref_id" => "5"
55  ],
56  []
57  );
58 
59  $this->assertEquals(
60  5,
61  $request->getRefId()
62  );
63  }
+ Here is the call graph for this function:

◆ testTemplateId()

ContentStyleStandardGUIRequestTest::testTemplateId ( )

Definition at line 66 of file ContentStyleStandardGUIRequestTest.php.

References getRequest().

66  : void
67  {
68  $request = $this->getRequest(
69  [
70  "t_id" => "7"
71  ],
72  []
73  );
74 
75  $this->assertEquals(
76  7,
77  $request->getTemplateId()
78  );
79  }
+ Here is the call graph for this function:

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