ILIAS  trunk Revision v13.0_alpha-62-g3b72d83f2e5
ilAssQuestionPreviewGUITest.php
Go to the documentation of this file.
1<?php
2
19use ILIAS\Refinery\Random\Group as RandomGroup;
20
31{
32 protected $backupGlobals = false;
33
35
36 protected function setUp(): void
37 {
39
40 $this->addGlobal_ilSetting();
41
42 $ctrl = $this->createMock(ilCtrl::class);
43 $rbac_system = $this->createMock(ilRbacSystem::class);
44 $tabs = $this->createMock(ilTabsGUI::class);
45 $toolbar = $this->createMock(ilToolbarGUI::class);
46 $tpl = $this->createMock(ilGlobalTemplateInterface::class);
47 $ui_factory = $this->createMock(ILIAS\UI\Factory::class);
48 $lng = $this->createMock(ilLanguage::class);
49 $db = $this->createMock(ilDBInterface::class);
50 $random_group = $this->createMock(RandomGroup::class);
51 $global_screen = $this->createMock(ILIAS\GlobalScreen\Services::class);
52 $content_style = $this->createMock(ILIAS\Style\Content\Service::class);
53
54 $this->object = new ilAssQuestionPreviewGUI(
55 $ctrl,
56 $rbac_system,
57 $tabs,
58 $toolbar,
59 $tpl,
60 $ui_factory,
61 $lng,
62 $db,
63 $random_group,
64 $global_screen,
65 $content_style,
66 0
67 );
68 }
69
70 public function testConstruct(): void
71 {
72 $this->assertInstanceOf(ilAssQuestionPreviewGUI::class, $this->object);
73 }
74}
Class assBaseTestCase.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
readonly ilGlobalTemplateInterface $tpl
Interface Observer \BackgroundTasks Contains several chained tasks and infos about them.
global $lng
Definition: privfeed.php:26