◆ setUp()
SystemStylesGlobalScreenToolProviderTest::setUp |
( |
| ) |
|
|
protected |
Definition at line 47 of file SystemStylesGlobalScreenToolProviderTest.php.
References $DIC, and $dic.
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
62 ->getMockBuilder(
ILIAS\GlobalScreen\Services::class)
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');
Class ChatMainBarProvider .
Customizing of pimple-DIC for ILIAS.
Class IdentificationFactory All elements in the GlobalScreen service must be identifiable for the sup...
Class UITestHelper can be helpful for test cases outside the UI Components, to inject a working facto...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
◆ testBuildTreeAsToolIfInAdminstrationContext()
SystemStylesGlobalScreenToolProviderTest::testBuildTreeAsToolIfInAdminstrationContext |
( |
| ) |
|
Definition at line 97 of file SystemStylesGlobalScreenToolProviderTest.php.
100 $this->assertEquals([], $this->tool_provider->getToolsForContextStack($contexts));
Class ContextRepository The Collection of all available Contexts in the System.
◆ 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());
Class ContextRepository The Collection of all available Contexts in the System.
Class BasicScreenContext.
◆ testBuildTreeAsToolNotInContext()
SystemStylesGlobalScreenToolProviderTest::testBuildTreeAsToolNotInContext |
( |
| ) |
|
Definition at line 91 of file SystemStylesGlobalScreenToolProviderTest.php.
94 $this->assertEquals([], $this->tool_provider->getToolsForContextStack($contexts));
Class ContextRepository The Collection of all available Contexts in the System.
◆ 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: