47 : void
48 {
50
53
54 $this->dic['ilCtrl'] = $this->getMockBuilder(ilCtrl::class)->disableOriginalConstructor()->onlyMethods([
55 'getLinkTargetByClass'
56 ])->getMock();
57 $this->dic['ilCtrl']->method('getLinkTargetByClass')->willReturn('1');
58
60
61 $this->dic['global_screen'] = $this
62 ->getMockBuilder(
ILIAS\GlobalScreen\Services::class)
63 ->disableOriginalConstructor()
64 ->onlyMethods(['identification'])
65 ->getMock();
66 $provider_factory = $this->getMockBuilder(ProviderFactory::class)->getMock();
68 $this->dic['global_screen']->method('identification')->willReturn($identification);
69
72
73 if (!defined('ILIAS_HTTP_PATH')) {
74 define('ILIAS_HTTP_PATH', 'http://localhost');
75 }
76 }
trait UITestHelper
Class UITestHelper can be helpful for test cases outside the UI Components, to inject a working facto...
Customizing of pimple-DIC for ILIAS.
Class IdentificationFactory All elements in the GlobalScreen service must be identifiable for the sup...
Responsible for loading the HTTP Service into the dependency injection container of ILIAS.
Interface Observer \BackgroundTasks Contains several chained tasks and infos about them.