ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
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();
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 }
addGlobal_rbacsystem()
addGlobal_ilNavigationHistory()
addGlobal_ilObjDataCache()
addGlobal_GlobalScreenService()