ILIAS  trunk Revision v11.0_alpha-1862-g4e205cb56d4
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
TestScoringByParticipantGUITest.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
28 {
30 
31  protected function setUp(): void
32  {
33  parent::setUp();
34 
35  $this->addGlobal_ilTabs();
36  $this->addGlobal_ilObjDataCache();
37  $this->addGlobal_ilHelp();
38  $this->addGlobal_rbacsystem();
39  $this->addGlobal_ilSetting();
40  $this->addGlobal_ilToolbar();
41  $this->addGlobal_GlobalScreenService();
42  $this->addGlobal_ilNavigationHistory();
43 
44  $this->testObj = new TestScoringByParticipantGUI($this->getTestObjMock());
45  }
46 
48  {
49  $this->assertInstanceOf(TestScoringByParticipantGUI::class, $this->testObj);
50  }
51 
52  public function testTestAccess(): void
53  {
54  $mock = $this->createMock(ilTestAccess::class);
55  $this->testObj->setTestAccess($mock);
56  $this->assertEquals($mock, $this->testObj->getTestAccess());
57  }
58 }