19 declare(strict_types=1);
    60     protected function setUp(): void
    63         if (!defined(
'ILIAS_HTTP_PATH')) {
    64             define(
'ILIAS_HTTP_PATH', 
'https://ilias.de/');
    66         if (!defined(
'CLIENT_ID')) {
    67             define(
'CLIENT_ID', 
'client');
    69         if (!defined(
'SYSTEM_FOLDER_ID')) {
    70             define(
'SYSTEM_FOLDER_ID', 0);
    72         $this->dic_backup = is_object($DIC) ? clone 
$DIC : 
$DIC;
    74         $this->provider_factory_mock = $this->createMock(ProviderFactory::class);
    75         $this->gs_mock = $DIC[
'global_screen'] = 
new Services($this->provider_factory_mock);
    76         $this->db_mock = $DIC[
'ilDB'] = $this->createMock(ilDBInterface::class);
    77         $this->dic_mock[
'ilUser'] = $DIC[
'ilUser'] = $this->createMock(ilObjUser::class);
    78         $this->dic_mock[
'ilSetting'] = $DIC[
'ilSetting'] = $this->createMock(ilSetting::class);
    79         $this->dic_mock[
'rbacsystem'] = $DIC[
'rbacsystem'] = $this->createMock(ilRbacSystem::class);
    80         $this->dic_mock[
'lng'] = $DIC[
'lng'] = $this->createMock(ilLanguage::class);
    81         $this->dic_mock[
'ui.factory'] = $DIC[
'ui.factory'] = $this->createMock(\
ILIAS\
UI\Factory::class);
    82         $this->dic_mock[
'ui.renderer'] = $DIC[
'ui.renderer'] = $this->createMock(\
ILIAS\
UI\Renderer::class);
    83         $this->dic_mock[
'objDefinition'] = $DIC[
'objDefinition'] = $this->createMock(ilObjectDefinition::class);
    96         $type_info = 
$provider->provideTypeInformation();
    97         $this->assertInstanceOf(TypeInformationCollection::class, $type_info);
   100         $item_type_info = $type_info->get(TopParentItem::class);
   101         $renderer = $item_type_info->getRenderer();
   102         $this->assertInstanceOf(TopParentItemRenderer::class, 
$renderer);
   103         $this->assertInstanceOf(
   109         $item_type_info = $type_info->get(Link::class);
   110         $renderer = $item_type_info->getRenderer();
   111         $this->assertInstanceOf(ilMMLinkItemRenderer::class, 
$renderer);
   112         $this->assertInstanceOf(
   118         $item_type_info = $type_info->get(LinkList::class);
   119         $renderer = $item_type_info->getRenderer();
   120         $this->assertInstanceOf(LinkListItemRenderer::class, 
$renderer);
   121         $this->assertInstanceOf(
   127         $item_type_info = $type_info->get(Separator::class);
   128         $renderer = $item_type_info->getRenderer();
   129         $this->assertInstanceOf(SeparatorItemRenderer::class, 
$renderer);
   130         $this->assertInstanceOf(
   136         $this->dic_mock[
'ilObjDataCache'] = $this->createMock(ilObjectDataCache::class);
   137         $this->dic_mock[
'static_url'] = $this->createMock(\
ILIAS\
StaticURL\Services::class);
   138         $item_type_info = $type_info->get(RepositoryLink::class);
   139         $renderer = $item_type_info->getRenderer();
   140         $this->assertInstanceOf(ilMMRepositoryLinkItemRenderer::class, 
$renderer);
   150         $this->dic_mock[
'lng'] = $this->createMock(ilLanguage::class);
   152         $items = $standard_top_items->getStaticTopItems();
   158         $this->assertEquals(7, count($items)); 
   159         $this->assertEquals(7, count($item_identifications));
   161         $repo = $standard_top_items->getRepositoryIdentification();
   162         $this->assertTrue(in_array($repo, $item_identifications));
   164         $admin = $standard_top_items->getAdministrationIdentification();
   165         $this->assertTrue(in_array($admin, $item_identifications));
   167         $achievments = $standard_top_items->getAchievementsIdentification();
   168         $this->assertTrue(in_array($achievments, $item_identifications));
   170         $communication = $standard_top_items->getCommunicationIdentification();
   171         $this->assertTrue(in_array($communication, $item_identifications));
   173         $organisation = $standard_top_items->getOrganisationIdentification();
   174         $this->assertTrue(in_array($communication, $item_identifications));
   176         $personal = $standard_top_items->getPersonalWorkspaceIdentification();
   177         $this->assertTrue(in_array($personal, $item_identifications));
 
Interface Observer  Contains several chained tasks and infos about them. 
 
Interface IdentificationInterface. 
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
Class NullIdentification. 
 
Customizing of pimple-DIC for ILIAS. 
 
ILIAS DI Container $dic_backup
 
testTypeHandlers()
PhpArrayIndexImmediatelyRewrittenInspection 
 
Class CustomMainBarProvider. 
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
Class StandardTopItemsProvider. 
 
ProviderFactory PHPUnit Framework MockObject MockObject $provider_factory_mock
 
getProviderIdentification()