ILIAS  release_8 Revision v8.19-1-g4e8f2f9140c
All Data Structures Namespaces Files Functions Variables Modules Pages
ilTestScoringGUITest.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
26 {
28 
29  protected function setUp(): void
30  {
31  parent::setUp();
32 
33  $this->addGlobal_lng();
34  $this->addGlobal_tpl();
35  $this->addGlobal_ilCtrl();
36  $this->addGlobal_ilias();
37  $this->addGlobal_tree();
38  $this->addGlobal_ilDB();
40  $this->addGlobal_ilTabs();
41  $this->addGlobal_ilObjDataCache();
42 
43  $this->testObj = new ilTestScoringGUI($this->createMock(ilObjTest::class));
44  }
45 
47  {
48  $this->assertInstanceOf(ilTestScoringGUI::class, $this->testObj);
49  }
50 
51  public function testTestAccess(): void
52  {
53  $mock = $this->createMock(ilTestAccess::class);
54  $this->testObj->setTestAccess($mock);
55  $this->assertEquals($mock, $this->testObj->getTestAccess());
56  }
57 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Class ilTestBaseClass.