Class InitCtrlServiceTest.
More...
◆ testCtrlServiceInitializationSuccess()
InitCtrlServiceTest::testCtrlServiceInitializationSuccess |
( |
| ) |
|
Definition at line 53 of file InitCtrlServiceTest.php.
References $dic.
56 $dic[
'refinery'] = $this->createMock(Refinery::class);
58 $dic[
'http.response_sender_strategy'] = $this->createMock(DefaultResponseSenderStrategy::class);
59 $dic[
'http'] = $this->createMock(HttpService::class);
63 $this->createMock(ServerRequestInterface::class)
65 $dic[
'component.factory'] = $this->createMock(ilComponentFactory::class);
67 $this->assertFalse(isset(
$dic[
'ilCtrl']));
71 $this->assertTrue(isset(
$dic[
'ilCtrl']));
72 $this->assertInstanceOf(
73 ilCtrlInterface::class,
Class InitCtrlService wraps the initialization of ilCtrl.
Customizing of pimple-DIC for ILIAS.
◆ testCtrlServiceInitializationWithoutHttpServices()
InitCtrlServiceTest::testCtrlServiceInitializationWithoutHttpServices |
( |
| ) |
|
Definition at line 31 of file InitCtrlServiceTest.php.
References $dic.
35 $dic[
'refinery'] = $this->createMock(Refinery::class);
37 $this->expectException(ilCtrlException::class);
38 $this->expectExceptionMessage(
"Cannot initialize ilCtrl if HTTP Services are not yet available.");
Class InitCtrlService wraps the initialization of ilCtrl.
Customizing of pimple-DIC for ILIAS.
◆ testCtrlServiceInitializationWithoutRefinery()
InitCtrlServiceTest::testCtrlServiceInitializationWithoutRefinery |
( |
| ) |
|
Definition at line 20 of file InitCtrlServiceTest.php.
References $dic.
24 $dic[
'http'] = $this->createMock(HttpService::class);
26 $this->expectException(ilCtrlException::class);
27 $this->expectExceptionMessage(
"Cannot initialize ilCtrl if Refinery Factory is not yet available.");
Class InitCtrlService wraps the initialization of ilCtrl.
Customizing of pimple-DIC for ILIAS.
The documentation for this class was generated from the following file: