◆ setUp()
SystemStylesGlobalScreenToolProviderTest::setUp |
( |
| ) |
|
|
protected |
Definition at line 47 of file SystemStylesGlobalScreenToolProviderTest.php.
References $DIC, $dic, init(), and UITestHelper.
54 $this->dic[
'ilCtrl'] = $this->getMockBuilder(ilCtrl::class)->disableOriginalConstructor()->onlyMethods([
55 'getLinkTargetByClass' 57 $this->dic[
'ilCtrl']->method(
'getLinkTargetByClass')->willReturn(
'1');
61 $this->dic[
'global_screen'] = $this
63 ->disableOriginalConstructor()
64 ->onlyMethods([
'identification'])
66 $provider_factory = $this->getMockBuilder(ProviderFactory::class)->getMock();
68 $this->dic[
'global_screen']->method(
'identification')->willReturn($identification);
73 if (!defined(
'ILIAS_HTTP_PATH')) {
74 define(
'ILIAS_HTTP_PATH',
'http://localhost');
Interface Observer Contains several chained tasks and infos about them.
Customizing of pimple-DIC for ILIAS.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Class IdentificationFactory All elements in the GlobalScreen service must be identifiable for the sup...
trait UITestHelper
Class UITestHelper can be helpful for test cases outside the UI Components, to inject a working facto...
Responsible for loading the HTTP Service into the dependency injection container of ILIAS...
◆ testBuildTreeAsToolIfInAdminstrationContext()
SystemStylesGlobalScreenToolProviderTest::testBuildTreeAsToolIfInAdminstrationContext |
( |
| ) |
|
◆ testBuildTreeAsToolIfInAdminstrationContextAndTreeIsAvailable()
SystemStylesGlobalScreenToolProviderTest::testBuildTreeAsToolIfInAdminstrationContextAndTreeIsAvailable |
( |
| ) |
|
Definition at line 103 of file SystemStylesGlobalScreenToolProviderTest.php.
References ilSystemStyleDocumentationGUI\SHOW_TREE.
107 $contexts->push($tree_available_context);
108 $tools = $this->tool_provider->getToolsForContextStack($contexts);
109 $this->assertCount(1, $tools);
110 $tool = array_pop($tools);
111 $this->assertInstanceOf(Tool::class, $tool);
112 $this->assertEquals(
'documentation', $tool->getTitle());
The Collection of all available Contexts in the System.
◆ testBuildTreeAsToolNotInContext()
SystemStylesGlobalScreenToolProviderTest::testBuildTreeAsToolNotInContext |
( |
| ) |
|
◆ testConstruct()
SystemStylesGlobalScreenToolProviderTest::testConstruct |
( |
| ) |
|
◆ testIsInterestedInContexts()
SystemStylesGlobalScreenToolProviderTest::testIsInterestedInContexts |
( |
| ) |
|
◆ $dic
Container SystemStylesGlobalScreenToolProviderTest::$dic |
|
protected |
◆ $entries
Entries SystemStylesGlobalScreenToolProviderTest::$entries |
|
protected |
◆ $entries_data
array SystemStylesGlobalScreenToolProviderTest::$entries_data |
|
protected |
◆ $entry
Entry SystemStylesGlobalScreenToolProviderTest::$entry |
|
protected |
◆ $entry_data
array SystemStylesGlobalScreenToolProviderTest::$entry_data |
|
protected |
◆ $test_uri
URI SystemStylesGlobalScreenToolProviderTest::$test_uri |
|
protected |
◆ $tool_provider
◆ $ui_helper
UITestHelper SystemStylesGlobalScreenToolProviderTest::$ui_helper |
|
protected |
The documentation for this class was generated from the following file: