ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
QuestionsOfAttemptTableTest.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
25
27{
29
30 protected function setUp(): void
31 {
32 global $DIC;
33 parent::setUp();
34
35 $this->addGlobal_ilCtrl();
36 $this->addGlobal_lng();
37 $this->addGlobal_http();
38 $this->addGlobal_ilUser();
39
40 $test_obj_mock = $this->getTestObjMock();
41 $parent_gui_mock = $this->createMock(\ilTestPlayerAbstractGUI::class);
42
43 $this->table = new QuestionsOfAttemptTable(
44 $DIC['lng'],
45 $DIC['ilCtrl'],
46 $DIC['ui.factory'],
47 $this->createMock(Factory::class),
48 $DIC['http'],
49 $parent_gui_mock,
50 $test_obj_mock,
51 []
52 );
53
54 }
55
57 {
58 $this->assertInstanceOf(QuestionsOfAttemptTable::class, $this->table);
59 }
60
61}
Builds data types.
Definition: Factory.php:36
Class ilTestBaseClass.
global $DIC
Definition: shib_login.php:26