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

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,
45 $get,
46 $post
47 );
48 }
Builds data types.
Definition: Factory.php:36
$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 testCharacteristics(), testRefId(), and testTemplateId().

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

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 }

References getRequest().

+ Here is the call graph for this function:

◆ testRefId()

ContentStyleStandardGUIRequestTest::testRefId ( )

Definition at line 50 of file ContentStyleStandardGUIRequestTest.php.

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 }

References getRequest().

+ Here is the call graph for this function:

◆ testTemplateId()

ContentStyleStandardGUIRequestTest::testTemplateId ( )

Definition at line 66 of file ContentStyleStandardGUIRequestTest.php.

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 }

References getRequest().

+ Here is the call graph for this function:

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