ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
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 {
38 parent::setUp();
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 $refinery = $this->createMock(ILIAS\Refinery\Factory::class);
53 $http = $this->createMock(ILIAS\HTTP\Services::class);
54
55 $this->object = new ilAssQuestionPreviewGUI(
56 $ctrl,
57 $rbac_system,
58 $tabs,
59 $toolbar,
60 $tpl,
61 $ui_factory,
62 $lng,
63 $db,
64 $random_group,
65 $global_screen,
66 $http,
68 0
69 );
70 }
71
72 public function testConstruct(): void
73 {
74 $this->assertInstanceOf(ilAssQuestionPreviewGUI::class, $this->object);
75 }
76}
Class assBaseTestCase.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
$http
Definition: deliver.php:30
Interface Observer \BackgroundTasks Contains several chained tasks and infos about them.
global $lng
Definition: privfeed.php:31