ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
ilTestScoringGUITest.php
Go to the documentation of this file.
1 <?php
2 
24 {
26 
27  protected function setUp(): void
28  {
29  parent::setUp();
30 
31  $this->addGlobal_lng();
32  $this->addGlobal_tpl();
33  $this->addGlobal_ilCtrl();
34  $this->addGlobal_ilias();
35  $this->addGlobal_tree();
36  $this->addGlobal_ilDB();
37  $this->addGlobal_ilUser();
39  $this->addGlobal_ilTabs();
40  $this->addGlobal_ilObjDataCache();
41  $this->addGlobal_ilHelp();
42  $this->addGlobal_ilLog();
43  $this->addGlobal_rbacsystem();
44  $this->addGlobal_ilAccess();
45  $this->addGlobal_ilSetting();
46  $this->addGlobal_ilToolbar();
49  $this->addGlobal_uiFactory();
50  $this->addGlobal_uiRenderer();
51 
52  $this->testObj = new ilTestScoringGUI($this->getTestObjMock());
53  }
54 
56  {
57  $this->assertInstanceOf(ilTestScoringGUI::class, $this->testObj);
58  }
59 
60  public function testTestAccess(): void
61  {
62  $mock = $this->createMock(ilTestAccess::class);
63  $this->testObj->setTestAccess($mock);
64  $this->assertEquals($mock, $this->testObj->getTestAccess());
65  }
66 }
Scoring class for tests.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Class ilTestBaseClass.