ILIAS  trunk Revision v11.0_alpha-1843-g9e1fad99175
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
UITestHelper.php File Reference

Go to the source code of this file.

Functions

 init (?Container $dic=null)
 
 factory ()
 
 renderer ()
 
 mainTemplate ()
 

Variables

trait UITestHelper
 Class UITestHelper can be helpful for test cases outside the UI Components, to inject a working factory and renderer into some classes to be unit tested. More...
 

Function Documentation

◆ factory()

factory ( )

Definition at line 61 of file UITestHelper.php.

References init().

Referenced by ilObjectReferenceCustomIconPresenter\__construct(), ilLanguageDetection\__construct(), ilAbstractLearningHistoryProvider\__construct(), ilRoleAssignmentTableGUI\__construct(), ilDclBaseRecordRepresentation\__construct(), ILIAS\GlobalScreen\Scope\Footer\Collector\Renderer\GroupItemRenderer\__construct(), ILIAS\Style\Content\ColorDBRepo\__construct(), ILIAS\Style\Content\CharacteristicDBRepo\__construct(), ILIAS\Style\Content\Style\StyleRepo\__construct(), ILIAS\MetaData\Editor\Full\Services\Actions\ButtonFactory\__construct(), ILIAS\Skill\Service\SkillInternalRepoService\__construct(), ILIAS\MetaData\Copyright\Renderer\__construct(), ILIAS\MetaData\Vocabularies\Standard\Repository\__construct(), ILIAS\ResourceStorage\Identification\__construct(), ILIAS\MetaData\Vocabularies\Controlled\Repository\__construct(), ILIAS\MetaData\Vocabularies\Copyright\Bridge\__construct(), ILIAS\Refinery\String\SplitString\__construct(), ilBadgeProfileGUI\__construct(), ilObjSearchSettingsFormGUI\__construct(), ILIAS\Style\Content\ImageFileRepo\__construct(), ilCASSettingsGUI\__construct(), ilIndividualAssessmentMembersTableGUI\__construct(), ILIAS\GlobalScreen\Scope\Tool\Provider\AbstractDynamicToolProvider\__construct(), ILIAS\UI\Implementation\Component\Input\Container\Container\AddLabels\__construct(), ilObjSearchLuceneSettingsFormGUI\__construct(), ilObjRepositorySettingsGUI\__construct(), ILIAS\MetaData\Editor\Full\Services\Actions\ModalFactory\__construct(), ILIAS\Badge\ilBadgeImageTemplateTableGUI\__construct(), ILIAS\Badge\ilBadgeTypesTableGUI\__construct(), ILIAS\GlobalScreen\Scope\Layout\Provider\AbstractModificationProvider\__construct(), ilIndividualAssessmentMembersGUI\__construct(), ilBadgePersonalTableGUI\__construct(), ILIAS\Badge\ilBadgeTableGUI\__construct(), ilOpenIdConnectSettingsGUI\__construct(), ILIAS\Badge\ilObjectBadgeTableGUI\__construct(), ILIAS\Badge\ilBadgeUserTableGUI\__construct(), ilLPStatusIcons\__construct(), ILIAS\FileDelivery\Delivery\__construct(), ilObjForumGUI\__construct(), ilBlockGUI\__construct(), ilMathJax\__construct(), ilObjForumGUI\addDraftButtonIfDraftsExists(), ILIAS\Refinery\String\SplitString\applyTo(), ILIAS\UI\Implementation\Component\Input\Container\Container\AddLabels\applyTo(), ILIAS\Test\Logging\TestLoggingDatabaseRepository\buildErrorFromId(), ILIAS\Test\Logging\TestLoggingDatabaseRepository\buildParticipantInteractionFromId(), ILIAS\Test\Logging\TestLoggingDatabaseRepository\buildQuestionAdministrationInteractionFromId(), ILIAS\Test\Logging\TestLoggingDatabaseRepository\buildScoringInteractionFromId(), ILIAS\Test\Logging\TestLoggingDatabaseRepository\buildTestAdministrationInteractionFromId(), SystemStylesGlobalScreenToolProvider\buildTreeAsTool(), ILIAS\MetaData\Editor\Tree\MDEditorToolProvider\buildTreeAsTool(), ilMathJax\clearCache(), ILIAS\MetaData\Copyright\Renderer\customIcon(), ILIAS\MetaData\Editor\Full\Services\Actions\ModalFactory\delete(), ILIAS\FileDelivery\Delivery\delivery(), ilLanguageDetection\detect(), ilMembershipBlockGUI\emptyHandling(), ilSelectedItemsBlockGUI\emptyHandling(), ILIAS\Test\Logging\TestLoggingDatabaseRepository\fetchInteractionForResult(), ilSearchResultTableGUI\fillRow(), ilRoleAssignmentTableGUI\fillRow(), ILIAS\Badge\ilBadgeImageTemplateTableGUI\getActions(), ILIAS\Badge\ilBadgeTypesTableGUI\getActions(), ilBadgePersonalTableGUI\getActions(), ILIAS\Badge\ilBadgeTableGUI\getActions(), ILIAS\Badge\ilObjectBadgeTableGUI\getActions(), ILIAS\Badge\ilBadgeUserTableGUI\getActions(), ilBlockGUI\getActionsForPanel(), ilObjForumGUI\getActionsForThreadOverview(), ILIAS\MetaData\Vocabularies\Standard\Repository\getActiveVocabularies(), ILIAS\Style\Content\CharacteristicDBRepo\getByKey(), ILIAS\Style\Content\CharacteristicDBRepo\getByTypes(), ilMathJax\getCacheSize(), ILIAS\Badge\ilBadgeTypesTableGUI\getColumns(), ILIAS\Badge\ilBadgeImageTemplateTableGUI\getColumns(), ilBadgePersonalTableGUI\getColumns(), ILIAS\Badge\ilBadgeTableGUI\getColumns(), ILIAS\Badge\ilObjectBadgeTableGUI\getColumns(), ILIAS\Badge\ilBadgeUserTableGUI\getColumns(), ilObjForumGUI\getEditTitleModal(), ilIndividualAssessmentMembersTableGUI\getFileDownloadLink(), ilDclBooleanRecordRepresentation\getHTML(), ilDclMobRecordRepresentation\getHTML(), ilBlockGUI\getHTML(), ilDashboardLearningSequenceGUI\getIcon(), ilLPStatusIcons\getIconComponent(), ILIAS\Style\Content\ImageFileRepo\getImages(), ILIAS\GlobalScreen\MainMenu\CollectorTest\getItemInformation(), ilDashboardBlockGUI\getLegacyContent(), ilDclIliasReferenceRecordRepresentation\getLinkHTML(), ilDclReferenceRecordRepresentation\getLinkHTML(), ilDashboardBlockGUI\getListItemGroups(), ILIAS\GlobalScreen\Scope\MetaBar\Collector\Map\getLostItem(), ILIAS\GlobalScreen\Scope\MainMenu\Collector\Map\Map\getLostItem(), ILIAS\GlobalScreen\MainMenu\MapTest\getMap(), ILIAS\components\WOPI\Embed\EmbeddedApplicationGSProvider\getMetaBarModification(), ilLSCompletionNotificationProvider\getNotifications(), ILIAS\GlobalScreen\ChatInvitationNotificationProvider\getNotifications(), ILIAS\LTI\Screen\LtiViewLayoutProvider\getPageBuilderDecorator(), ILIAS\Container\Screen\MemberViewLayoutProvider\getPageBuilderDecorator(), ilLSViewLayoutProvider\getPageBuilderDecorator(), ilIndividualAssessmentMembersTableGUI\getProfileLink(), ILIAS\Badge\ilBadgeImageTemplateTableGUI\getRecords(), ILIAS\Badge\ilBadgeTableGUI\getRecords(), ILIAS\Badge\ilObjectBadgeTableGUI\getRecords(), ILIAS\MetaData\Editor\Full\Services\Actions\ModalFactory\getRoundtripModal(), ILIAS\MetaData\OERHarvester\HarvesterTest\getSearchFactory(), ILIAS\MetaData\Editor\Full\Services\Actions\ButtonFactory\getShyButton(), ilObjForumGUI\getSortationViewControl(), ILIAS\MetaData\Editor\Full\Services\Actions\ButtonFactory\getStandardButton(), ilLMGSToolProvider\getTocTool(), ilTestPlayerToolProvider\getToolsForContextStack(), ilMediaPoolGSToolProvider\getToolsForContextStack(), ilWorkspaceGSToolProvider\getToolsForContextStack(), ilAdminGSToolProvider\getToolsForContextStack(), ilExerciseGSToolProvider\getToolsForContextStack(), ilCOPageEditGSToolProvider\getToolsForContextStack(), ilLMGSToolProvider\getToolsForContextStack(), ForumGlobalScreenToolsProvider\getToolsForContextStack(), ILIAS\Mail\Provider\MailGlobalScreenToolProvider\getToolsForContextStack(), ilTaxonomyGSToolProvider\getToolsForContextStack(), ilLMEditGSToolProvider\getToolsForContextStack(), ILIAS\OrgUnit\Provider\OrgUnitToolProvider\getToolsForContextStack(), ilSkillGSToolProvider\getToolsForContextStack(), ILIAS\Skill\Service\SkillInternalRepoService\getTreeRepo(), SettingsScoringGUITest\getUIComponents(), ILIAS\ResourceStorage\Identification\UniqueIDCollectionIdentificationGenerator\getUniqueResourceCollectionIdentification(), ILIAS\ResourceStorage\Identification\UniqueIDIdentificationGenerator\getUniqueResourceIdentification(), ILIAS\ResourceStorage\Identification\getUUID(), ilIndividualAssessmentMembersGUI\getViewControls(), ilBlockGUI\getViewControlsForPanel(), ILIAS\MetaData\Vocabularies\Standard\Repository\getVocabularies(), ILIAS\MetaData\Vocabularies\Standard\Repository\getVocabulary(), ILIAS\MetaData\Vocabularies\Controlled\Repository\getVocabulary(), ILIAS\MetaData\Vocabularies\Controlled\Repository\getVocabularyFromRow(), ILIAS\MetaData\Editor\Full\Services\Actions\ModalFactory\handleError(), ilMathJax\includeMathJax(), ilObjectReferenceCustomIconPresenter\init(), ilObjRepositorySettingsGUI\initCustomIconsForm(), ilObjSearchLuceneSettingsFormGUI\initForm(), ilObjSearchSettingsFormGUI\initForm(), ilCASSettingsGUI\initFormSettings(), ilObjRepositorySettingsGUI\initSettingsForm(), ilHelpGSToolProvider\isInterestedInContexts(), ILIAS\components\WOPI\Embed\EmbeddedApplicationGSProvider\isInterestedInContexts(), ilStudyProgrammeDashboardViewGUI\maybeGetCertificateLink(), ilIndividualAssessmentMembersGUI\removeUserConfirmation(), ilIndividualAssessmentMembersTableGUI\render(), ilMathJax\renderMathJax(), ILIAS\Badge\ilBadgeImageTemplateTableGUI\renderTable(), ILIAS\Badge\ilBadgeTypesTableGUI\renderTable(), ilBadgePersonalTableGUI\renderTable(), ILIAS\Badge\ilBadgeTableGUI\renderTable(), ILIAS\Badge\ilObjectBadgeTableGUI\renderTable(), ILIAS\Badge\ilBadgeUserTableGUI\renderTable(), ilObjForumGUI\renderThreadOverview(), ilSkinFactoryTest\setUp(), ilTestQuestionNavigationGUITest\setUp(), ILIAS\Skill\Personal\SkillInternalPersonalFactoryTest\setUp(), HtmlMetadataTest\setUp(), OpenGraphMetadataTest\setUp(), ILIAS\Skill\Profile\SkillInternalProfileFactoryTest\setUp(), ilCtrlPathFactoryTest\setUp(), BulkyLinkTest\setUp(), ILIAS\Skill\Service\SkillInternalFactoryServiceTest\setUp(), ILIAS\Tests\UI\Component\Dropzone\File\FileTestBase\setUp(), DateTimeInputTest\setUp(), MetaBarTest\setUp(), MainBarTest\setUp(), DurationInputTest\setUp(), BaseToastSetUp\setUp(), ILIAS\GlobalScreen\MainMenu\FactoryImplTest\setUp(), ILIAS\src\Refinery\String\LevenshteinTest\setUp(), ILIAS\GlobalScreen\MainMenu\MapTest\setUp(), ilCtrlContextTest\setUp(), StandardPageTest\setUp(), MarkdownTest\setUp(), BaseNotificationSetUp\setUp(), ilOpenIdConnectSettingsGUI\showInfoMessage(), ILIAS\MetaData\Copyright\Renderer\standardLink(), ILIAS\GlobalScreen\MainMenu\MapTest\testAddItem(), GroupNotificationTest\testAddNotification(), ILIAS\src\Refinery\String\LevenshteinTest\testApplyToMultibyteString(), ILIAS\src\Refinery\String\LevenshteinTest\testApplyToSuccessfulCustomCost(), ILIAS\src\Refinery\String\LevenshteinTest\testApplyToSuccessfulDefault(), ILIAS\src\Refinery\String\LevenshteinTest\testApplyToWrongType(), OpenGraphMetadataTest\testAudioTag(), NotificationFactoryTest\testAvailableMethods(), ILIAS\GlobalScreen\MainMenu\FactoryImplTest\testAvailableMethods(), BulkyLinkTest\testBulkyLinkRenderWithDisabled(), DateTimeInputTest\testCommonRendering(), DurationInputTest\testCommonRendering(), GroupNotificationTest\testConstructByFactory(), StandardNotificationTest\testConstructByFactory(), ilCtrlContextTest\testContextBaseClassPropertyAdoptionByRequest(), ilCtrlContextTest\testContextCommandClassPropertyWithBaseClass(), ilCtrlContextTest\testContextCommandClassPropertyWithoutBaseClass(), ilCtrlContextTest\testContextPropertiesThatCantBeAdopted(), ilCtrlContextTest\testContextPropertyAdoptionByRequest(), NotificationFactoryTest\testCorrectReturn(), HtmlMetadataTest\testEmptyTagCollection(), ILIAS\GlobalScreen\MainMenu\MapTest\testFilterItems(), BulkyLinkTest\testGetAction(), MainNotificationCollectorTest\testGetAmountOfNewNotifications(), MainNotificationCollectorTest\testGetAmountOfOldNotifications(), BulkyLinkTest\testGetGlyphSymbol(), BulkyLinkTest\testGetLabell(), StandardNotificationGroupRendererTest\testGetNotificationComponentForItem(), StandardNotificationRendererTest\testGetNotificationComponentForItem(), StandardNotificationRendererTest\testGetNotificationComponentForItemWithCloseCallable(), MainNotificationCollectorTest\testGetNotifications(), MainNotificationCollectorTest\testGetNotificationsIdentifiersAsArray(), StandardNotificationTest\testGetProviderIdentification(), GroupNotificationTest\testGetProviderIdentification(), StandardNotificationTest\testGetRenderer(), GroupNotificationTest\testGetRenderer(), ToastCollectorTest\testGetToasts(), StandardNotificationTest\testHasClosedCallable(), MainNotificationCollectorTest\testHasNotifications(), OpenGraphMetadataTest\testImageTag(), BulkyLinkTest\testImplementsInterfaces(), ILIAS\GlobalScreen\MainMenu\FactoryImplTest\testInterchangeableContraints(), HtmlMetadataTest\testNestedTagCollection(), GroupNotificationTest\testNewNotificationCount(), GroupNotificationTest\testNotificationCount(), HtmlMetadataTest\testNullTag(), GroupNotificationTest\testOldNotificationCount(), ilCtrlPathFactoryTest\testPathFactoryExistingPath(), ilCtrlPathFactoryTest\testPathFactoryFindArrayClassTargetPath(), ilCtrlPathFactoryTest\testPathFactoryFindSingleClassTargetPath(), ilCtrlPathFactoryTest\testPathFactoryNullPath(), MarkdownTest\testRender(), DurationInputTest\testRender(), DateTimeInputTest\testRender(), ILIAS\Tests\UI\Component\Dropzone\File\StandardTest\testRenderBulky(), MainBarTest\testRendering(), BulkyLinkTest\testRenderingGlyph(), BulkyLinkTest\testRenderingIcon(), StandardPageTest\testRenderingWithCrumbs(), BulkyLinkTest\testRenderingWithId(), ILIAS\Tests\UI\Component\Dropzone\File\StandardTest\testRenderStandard(), ILIAS\Tests\UI\Component\Dropzone\File\StandardTest\testRenderStandardWithAdditionalInputs(), ILIAS\Tests\UI\Component\Dropzone\File\StandardTest\testRenderStandardWithUploadButton(), BulkyLinkTest\testRenderWithAriaRoleMenuitem(), MarkdownTest\testRenderWithByline(), MarkdownTest\testRenderWithDisabled(), BulkyLinkTest\testRenderWithDuplicateRelationship(), MarkdownTest\testRenderWithError(), BulkyLinkTest\testRenderWithHelpTopic(), BulkyLinkTest\testRenderWithLabelAndAltImageSame(), BulkyLinkTest\testRenderWithLanguage(), MarkdownTest\testRenderWithLimits(), BulkyLinkTest\testRenderWithRelationships(), MarkdownTest\testRenderWithRequired(), ILIAS\Tests\UI\Component\Dropzone\File\WrapperTest\testRenderWrapper(), ILIAS\Tests\UI\Component\Dropzone\File\WrapperTest\testRenderWrapperWithAdditionalInputs(), StandardToastTest\testReservedActions(), ilSkinFactoryTest\testSkinStyleContainerFromId(), ILIAS\GlobalScreen\MainMenu\MapTest\testSortingTopItems(), StandardToastTest\testStandardToast(), HtmlMetadataTest\testTagCollection(), HtmlMetadataTest\testUserDefinedTag(), OpenGraphMetadataTest\testVideoTag(), OpenGraphMetadataTest\testWebsiteTag(), BulkyLinkTest\testWithAriaRole(), BulkyLinkTest\testWithAriaRoleIncorrect(), StandardNotificationTest\testWithClosedCallable(), DateTimeInputTest\testWithFormat(), DurationInputTest\testWithFormat(), DateTimeInputTest\testWithInvalidTimeZone(), DurationInputTest\testWithInvalidTimeZone(), DateTimeInputTest\testWithInvalidValue(), DateTimeInputTest\testWithMaxValue(), DurationInputTest\testWithMaxValue(), DateTimeInputTest\testWithMinValue(), DurationInputTest\testWithMinValue(), StandardNotificationTest\testWithNewAmout(), StandardNotificationTest\testWithNotificationItem(), StandardNotificationTest\testWithOldAmout(), StandardNotificationTest\testWithOpenedCallable(), GroupNotificationTest\testWithOpenedCallable(), DurationInputTest\testWithoutByline(), DateTimeInputTest\testWithTimeOnly(), DurationInputTest\testWithTimeOnly(), DateTimeInputTest\testWithTimeZone(), DurationInputTest\testWithTimeZone(), DateTimeInputTest\testWithUseTime(), DurationInputTest\testWithUseTime(), DateTimeInputTest\testWithValueThatIsDateTimeImmutable(), StandardPageTest\testWithWrongContents(), GroupNotificationTest\testWitTitle(), BulkyLinkTest\testWrongConstruction(), ILIAS\MetaData\Copyright\Renderer\textInLegacy(), ilOpenIdConnectSettingsGUI\userMapping(), ilIndividualAssessmentMembersGUI\view(), and ILIAS\MetaData\Vocabularies\Copyright\Bridge\vocabulary().

61  : Factory
62  {
63  if (!isset($this->dic_with_ui)) {
64  $this->init();
65  }
66  return $this->dic_with_ui->ui()->factory();
67  }
This is how the factory for UI elements looks.
Definition: Factory.php:37
init(?Container $dic=null)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ init()

init ( ?Container  $dic = null)

Definition at line 39 of file UITestHelper.php.

References $dic.

Referenced by factory(), mainTemplate(), and renderer().

39  : Container
40  {
41  if ($dic) {
42  $this->dic_with_ui = $dic;
43  } else {
44  $this->dic_with_ui = new Container();
45  }
46 
47  $tpl_fac = new ilIndependentTemplateFactory();
48  $this->dic_with_ui["tpl"] = $tpl_fac->getTemplate("tpl.main.html", false, false);
49  $this->dic_with_ui["lng"] = new LanguageMock();
50  $data_factory = new DataFactory();
51  $this->dic_with_ui["refinery"] = new RefinaryFactory($data_factory, $this->dic_with_ui["lng"]);
52 
53  (new InitUIFramework())->init($this->dic_with_ui);
54 
55  $this->dic_with_ui["ui.template_factory"] = new ilIndependentTemplateFactory();
56  $this->dic_with_ui["help.text_retriever"] = new ILIAS\UI\Help\TextRetriever\Echoing();
57 
58  return $this->dic_with_ui;
59  }
Customizing of pimple-DIC for ILIAS.
Definition: Container.php:35
This is more or less a copy of the removed InitUIFramework file inside the Init component.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
init(?Container $dic=null)
$dic
Definition: result.php:31
+ Here is the caller graph for this function:

◆ mainTemplate()

mainTemplate ( )

Definition at line 77 of file UITestHelper.php.

References init().

Referenced by ilForumTopicTableGUI\__construct(), ilStartUpGUI\__construct(), ilOpenIdConnectSettingsGUI\__construct(), ilOpenIdConnectSettingsGUI\discoverScopesFromServer(), ilStartUpGUI\doApacheAuthentication(), ilStartUpGUI\doCasAuthentication(), ilStartUpGUI\doLTIAuthentication(), ilStartUpGUI\doMigration(), ilStartUpGUI\doMigrationNewAccount(), ilStartUpGUI\doOpenIdConnectAuthentication(), ilStartUpGUI\doSamlAuthentication(), ilStartUpGUI\doShibbolethAuthentication(), ilStartUpGUI\doStandardAuthentication(), ilStartUpGUI\getAuthPageEditorHtml(), ilLearningModuleKioskModeView\getObjectClass(), SettingsScoringGUITest\getUIComponents(), ILIAS\Notes\InternalGUIService\initJavascript(), ilForumTopicTableGUI\initMergeThreadsTable(), ilStartUpGUI\processCode(), ilStartUpGUI\processIndexPHP(), ilContentPageKioskModeView\renderContentStyle(), ilOpenIdConnectSettingsGUI\roles(), ilOpenIdConnectSettingsGUI\saveProfileMapping(), ilOpenIdConnectSettingsGUI\saveRoles(), ilOpenIdConnectSettingsGUI\saveScopes(), ilOpenIdConnectSettingsGUI\saveSettings(), ilContentPageKioskModeView\setObject(), ilOpenIdConnectSettingsGUI\settings(), ilStartUpGUI\showAccountMigration(), ilStartUpGUI\showCodeForm(), ilOpenIdConnectSettingsGUI\showInfoMessage(), ilStartUpGUI\showLoginPage(), ilStartUpGUI\showLoginPageOrStartupPage(), ilStartUpGUI\showLogout(), ilStartUpGUI\showSamlIdpSelection(), ILIAS\LegalDocuments\test\ConsumerToolbox\UITest\testMainTemplate(), and ilOpenIdConnectSettingsGUI\validateDiscoveryUrl().

78  {
79  if (!isset($this->dic_with_ui)) {
80  $this->init();
81  }
82  return $this->dic_with_ui->ui()->mainTemplate();
83  }
init(?Container $dic=null)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ renderer()

renderer ( )

Definition at line 69 of file UITestHelper.php.

References init().

Referenced by ilBadgeRenderer\__construct(), ilSearchFilterGUI\__construct(), ilDclFieldListTableGUI\__construct(), ilRoleAssignmentTableGUI\__construct(), ilDclBaseRecordRepresentation\__construct(), ilSCGroupTableGUI\__construct(), ilAccessPermissionsStatusTableGUI\__construct(), ilUiLinkToSplitButtonMenuItemAdapter\__construct(), ilSurveyQuestionsTableGUI\__construct(), ilAvailableRolesStatusTableGUI\__construct(), ilConsultationHourBookingTableGUI\__construct(), ilCourseObjectivesTableGUI\__construct(), ilConsultationHoursTableGUI\__construct(), ilSCTaskTableGUI\__construct(), ilCalendarManageTableGUI\__construct(), ILIAS\MetaData\Services\CopyrightHelper\Copyright\__construct(), ILIAS\MetaData\Editor\Full\Services\Tables\TableFactory\__construct(), ilDclFieldListGUI\__construct(), ilDclTableListGUI\__construct(), ilObjSearchSettingsFormGUI\__construct(), ilBadgeProfileGUI\__construct(), ilSubscriberTableGUI\__construct(), ilCASSettingsGUI\__construct(), ilDclGenericMultiInputGUI\__construct(), ilWaitingListTableGUI\__construct(), ilSessionMaterialsTableGUI\__construct(), ilPluginsOverviewTable\__construct(), ILIAS\GlobalScreen\Scope\MetaBar\Factory\TopLinkItem\__construct(), ILIAS\GlobalScreen\Scope\MetaBar\Factory\LinkItem\__construct(), ilShibbolethSettingsForm\__construct(), ILIAS\GlobalScreen\Scope\MetaBar\Factory\TopLegacyItem\__construct(), ilIndividualAssessmentMembersTableGUI\__construct(), ilWorkspaceShareTableGUI\__construct(), ilDclDetailedViewGUI\__construct(), ilSessionOverviewTableGUI\__construct(), ilObjSearchLuceneSettingsFormGUI\__construct(), ILIAS\GlobalScreen\Scope\MetaBar\Factory\AbstractBaseItem\__construct(), ILIAS\GlobalScreen\Scope\MetaBar\Factory\TopParentItem\__construct(), ilWebResourceLinkTableGUI\__construct(), ILIAS\MetaData\Editor\Full\Services\Tables\TableBuilder\__construct(), ilDclTableViewGUI\__construct(), ILIAS\MetaData\Services\CopyrightHelper\CopyrightHelper\__construct(), ilObjRepositorySettingsGUI\__construct(), ilParticipantTableGUI\__construct(), ilMDCopyrightTableGUI\__construct(), ilDclBaseRecordModel\__construct(), ilSystemStyleConfigGUI\__construct(), ILIAS\GlobalScreen\Scope\MainMenu\Collector\Information\TypeInformation\__construct(), ilMultipleTextsInputGUI\__construct(), ilMatchingPairWizardInputGUI\__construct(), ilStudyProgrammeChangeDeadlineGUI\__construct(), ilStudyProgrammeChangeExpireDateGUI\__construct(), ilDidacticTemplateSettingsTableGUI\__construct(), ilMatchingWizardInputGUI\__construct(), ilAnswerWizardInputGUI\__construct(), ilImagemapFileInputGUI\__construct(), ilMDCopyrightSelectionEntry\__construct(), ilSystemStyleOverviewGUI\__construct(), ilSingleChoiceWizardInputGUI\__construct(), ILIAS\Badge\ilBadgeImageTemplateTableGUI\__construct(), ilQuestionBrowserTableGUI\__construct(), ILIAS\Badge\ilBadgeTypesTableGUI\__construct(), ilMDCopyrightConfigurationGUI\__construct(), ILIAS\GlobalScreen\Scope\MetaBar\Factory\NotificationCenter\__construct(), ilIndividualAssessmentMembersGUI\__construct(), ilDclRecordListGUI\__construct(), ilBadgePersonalTableGUI\__construct(), ilCalendarPresentationGUI\__construct(), ilObjComponentSettingsGUI\__construct(), ilObjStudyProgrammeSettingsGUI\__construct(), ilDidacticTemplateSettingsGUI\__construct(), ILIAS\Badge\ilBadgeTableGUI\__construct(), ilMultipleImagesInputGUI\__construct(), ilCourseObjectivesGUI\__construct(), ilOpenIdConnectSettingsGUI\__construct(), ilWOPIEmbeddedApplicationGUI\__construct(), ILIAS\Badge\ilObjectBadgeTableGUI\__construct(), ILIAS\Badge\ilBadgeUserTableGUI\__construct(), ilLPStatusIcons\__construct(), ilObjForumGUI\__construct(), ilBlockGUI\__construct(), ilObjFileGUI\__construct(), ilStudyProgrammeTypeGUI\add(), ilIndividualAssessmentMemberGUI\amend(), ilObjFileGUI\buildInfoScreen(), ilDidacticTemplateSettingsGUI\confirmDelete(), ilObjComponentSettingsGUI\confirmUninstallPlugin(), ilStudyProgrammeTypeGUI\create(), ilObjRepositorySettingsGUI\customIcons(), ilIndividualAssessmentMemberGUI\edit(), ilSystemStyleConfigGUI\edit(), ilStudyProgrammeTypeGUI\edit(), ilObjFileGUI\edit(), ilStudyProgrammeTypeGUI\editCustomIcons(), ilObjBibliographicGUI\editObject(), ilMembershipBlockGUI\emptyHandling(), ilSelectedItemsBlockGUI\emptyHandling(), ilSystemStyleMainGUI\executeCommand(), ilSystemStyleMainGUI\executeDefaultCommand(), ilAccessPermissionsStatusTableGUI\fillRow(), ilSCGroupTableGUI\fillRow(), ilAvailableRolesStatusTableGUI\fillRow(), ilSCTaskTableGUI\fillRow(), ilConsultationHoursTableGUI\fillRow(), ilConsultationHourBookingTableGUI\fillRow(), ilCalendarManageTableGUI\fillRow(), ilCourseObjectivesTableGUI\fillRow(), ilRoleAssignmentTableGUI\fillRow(), ilWebResourceLinkTableGUI\fillRow(), ilSessionOverviewTableGUI\fillRow(), ilSurveyQuestionsTableGUI\fillRow(), ilSessionMaterialsTableGUI\fillRow(), ilWorkspaceShareTableGUI\fillRow(), ilQuestionBrowserTableGUI\fillRow(), ilDclFieldListTableGUI\fillRowFromObject(), ilIndividualAssessmentMemberGUI\finalizeConfirmation(), ilQuestionBrowserTableGUI\getCommentsHtml(), ilUiLinkToSplitButtonMenuItemAdapter\getContent(), ILIAS\MetaData\Services\CopyrightHelper\CopyrightHelper\getCopyrightEntryWrapper(), ilIndividualAssessmentMembersTableGUI\getFileDownloadLink(), ilDclMobRecordRepresentation\getHTML(), ilDclBooleanRecordRepresentation\getHTML(), ilBadgeRenderer\getHTML(), ilShibbolethSettingsForm\getHTML(), ilPluginsOverviewTableFilterGUI\getHTML(), ilSearchFilterGUI\getHTML(), ilADNNotificationUIFormGUI\getHTML(), ilDidacticTemplateSettingsTableGUI\getHTML(), ilBlockGUI\getHTML(), ilAdvancedSelectionListGUI\getHTML(), ilContainerContentGUI\getItemGroupsHTML(), ilDashboardBlockGUI\getLegacyContent(), ilDclIliasReferenceRecordRepresentation\getLinkHTML(), ilDclReferenceRecordRepresentation\getLinkHTML(), ilIndividualAssessmentMembersTableGUI\getProfileLink(), ILIAS\Badge\ilBadgeImageTemplateTableGUI\getRecords(), ILIAS\Badge\ilBadgeTableGUI\getRecords(), ilBadgePersonalTableGUI\getRecords(), ILIAS\Badge\ilObjectBadgeTableGUI\getRecords(), ilContainerContentGUI\getSingleTypeBlockAsynch(), ilDclBaseRecordModel\getStandardFieldHTML(), ilPluginsOverviewTable\getTable(), SettingsScoringGUITest\getUIComponents(), ilObjLearningSequenceLearnerGUI\getWrappedHTML(), ilBiblFieldFilterGUI\index(), ilCASSettingsGUI\initFormSettings(), ilContainerSessionsContentGUI\initRenderer(), ilContainerContentGUI\initRenderer(), ilCourseObjectivesGUI\initWizard(), ilEssayKeywordWizardInputGUI\insert(), ilKprimChoiceWizardInputGUI\insert(), ilMatchingPairWizardInputGUI\insert(), ilMultipleChoiceWizardInputGUI\insert(), ilAnswerWizardInputGUI\insert(), ilMatchingWizardInputGUI\insert(), ilImagemapFileInputGUI\insert(), ilSingleChoiceWizardInputGUI\insert(), ilContainerContentGUI\insertPageEmbeddedBlocks(), ilObjComponentSettingsGUI\listPlugins(), ilDclTableListGUI\listTables(), ilStudyProgrammeTypeGUI\listTypes(), ilStudyProgrammeDashboardViewGUI\maybeGetCertificateLink(), ilDidacticTemplateSettingsGUI\overview(), ilObjBibliographicGUI\overwriteBibliographicFile(), ilMDCopyrightTableGUI\parseSelections(), ilCalendarPresentationGUI\prepareOutput(), ILIAS\MetaData\Services\CopyrightHelper\Copyright\presentAsString(), ILIAS\MetaData\Services\CopyrightHelper\Copyright\presentAsUIComponents(), ilMDCopyrightSelectionEntry\read(), ilIndividualAssessmentMembersGUI\removeUserConfirmation(), ilIndividualAssessmentMembersTableGUI\render(), ilMultipleTextsInputGUI\render(), ilDclGenericMultiInputGUI\render(), ilMultipleImagesInputGUI\render(), ilLPStatusIcons\renderIcon(), ilContainerContentGUI\renderItemGroup(), ilContainerSimpleContentGUI\renderItemList(), ilContainerByTypeContentGUI\renderItemList(), ilContainerSessionsContentGUI\renderItemList(), ILIAS\Containter\Content\ObjectiveRenderer\renderObjective(), ilContainerContentGUI\renderPageEmbeddedBlocks(), ILIAS\Badge\ilBadgeImageTemplateTableGUI\renderTable(), ILIAS\Badge\ilBadgeTypesTableGUI\renderTable(), ilBadgePersonalTableGUI\renderTable(), ILIAS\Badge\ilBadgeTableGUI\renderTable(), ILIAS\Badge\ilObjectBadgeTableGUI\renderTable(), ILIAS\Badge\ilBadgeUserTableGUI\renderTable(), ILIAS\Containter\Content\ObjectiveRenderer\renderTest(), ilObjForumGUI\renderThreadOverview(), ilSystemStyleConfigGUI\save(), ilOpenIdConnectSettingsGUI\scopes(), ILIAS\GlobalScreen\Scope\MainMenu\Collector\Information\TypeInformation\setRenderer(), ilObjLearningSequenceSettingsGUI\settings(), ilObjBibliographicGUI\settings(), ilTestQuestionNavigationGUITest\setUp(), ILIAS\Component\Tests\Dependencies\RendererTest\setUp(), ilPluginsOverviewTableTest\setUp(), ilDclTableViewGUI\show(), ilParticipantTableGUI\showActionLinks(), ilSubscriberTableGUI\showActionLinks(), ilWaitingListTableGUI\showActionLinks(), ilMDCopyrightConfigurationGUI\showCopyrightSelection(), ilStudyProgrammeChangeDeadlineGUI\showDeadlineConfig(), ilStudyProgrammeChangeExpireDateGUI\showExpireDateConfig(), ilObjSearchSettingsFormGUI\showForm(), ilObjSearchLuceneSettingsFormGUI\showForm(), ilOpenIdConnectSettingsGUI\showInfoMessage(), ILIAS\Containter\Content\ObjectiveRenderer\showObjectives(), ILIAS\MetaData\Editor\Full\Services\Tables\TableFactory\table(), ilPluginsOverviewTableTest\testCreateObject(), ILIAS\Component\Tests\Dependencies\RendererTest\testScenario(), ilObjStudyProgrammeSettingsGUI\update(), ilObjLearningSequenceSettingsGUI\update(), ilStudyProgrammeTypeGUI\update(), ilObjBibliographicGUI\updateObject(), ilOpenIdConnectSettingsGUI\userMapping(), ilIndividualAssessmentMemberGUI\view(), ilObjStudyProgrammeSettingsGUI\view(), ilObjRepositorySettingsGUI\view(), ilIndividualAssessmentMembersGUI\view(), and ILIAS\MetaData\Editor\Full\Services\Tables\TableBuilder\withAdditionalRow().

69  : Renderer
70  {
71  if (!isset($this->dic_with_ui)) {
72  $this->init();
73  }
74  return $this->dic_with_ui->ui()->renderer();
75  }
init(?Container $dic=null)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ UITestHelper

trait UITestHelper
Initial value:
{
protected Container $dic_with_ui
Customizing of pimple-DIC for ILIAS.
Definition: Container.php:35

Class UITestHelper can be helpful for test cases outside the UI Components, to inject a working factory and renderer into some classes to be unit tested.

See UITestHelperTest for an example of how this can be used.

Definition at line 36 of file UITestHelper.php.

Referenced by ilSystemStyleDocumentationGUITest\setUp(), ilKSDocumentationEntryGUITest\setUp(), ilSystemStyleOverviewGUITest\setUp(), KSDocumentationTreeRecursionTest\setUp(), SystemStylesGlobalScreenToolProviderTest\setUp(), and ilSystemStyleMessageStackTest\testGetUIComponentsMessages().