ILIAS  trunk Revision v11.0_alpha-1715-g7fc467680fb
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
InitHttpServicesTest Class Reference
+ Inheritance diagram for InitHttpServicesTest:
+ Collaboration diagram for InitHttpServicesTest:

Public Member Functions

 testUIFrameworkInitialization ()
 

Protected Member Functions

 setUp ()
 Http services has no additional deps so far to be set up. More...
 

Protected Attributes

 $dic
 

Detailed Description

Definition at line 23 of file InitHttpServicesTest.php.

Member Function Documentation

◆ setUp()

InitHttpServicesTest::setUp ( )
protected

Http services has no additional deps so far to be set up.

Definition at line 33 of file InitHttpServicesTest.php.

33  : void
34  {
35  $this->dic = new \ILIAS\DI\Container();
36  }

◆ testUIFrameworkInitialization()

InitHttpServicesTest::testUIFrameworkInitialization ( )

Definition at line 38 of file InitHttpServicesTest.php.

References init().

38  : void
39  {
40  $this->assertFalse(isset($this->dic['http']));
41  $this->assertFalse(isset($this->dic['http.response_sender_strategy']));
42  $this->assertFalse(isset($this->dic['http.cookie_jar_factory']));
43  $this->assertFalse(isset($this->dic['http.request_factory']));
44  $this->assertFalse(isset($this->dic['http.response_factory']));
45  (new \InitHttpServices())->init($this->dic);
46  $this->assertInstanceOf("ILIAS\HTTP\Services", $this->dic->http());
47  $this->assertTrue(isset($this->dic['http']));
48  $this->assertTrue(isset($this->dic['http.response_sender_strategy']));
49  $this->assertTrue(isset($this->dic['http.cookie_jar_factory']));
50  $this->assertTrue(isset($this->dic['http.request_factory']));
51  $this->assertTrue(isset($this->dic['http.response_factory']));
52  }
+ Here is the call graph for this function:

Field Documentation

◆ $dic

InitHttpServicesTest::$dic
protected

Definition at line 28 of file InitHttpServicesTest.php.


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