ILIAS  release_8 Revision v8.24
ilTestDashboardGUITest.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
26{
28
29 protected function setUp(): void
30 {
31 parent::setUp();
32
33 $this->testObj = new ilTestDashboardGUI(
34 $this->createMock(ilObjTest::class),
35 $this->createMock(ilTestQuestionSetConfig::class)
36 );
37 }
38
40 {
41 $this->assertInstanceOf(ilTestDashboardGUI::class, $this->testObj);
42 }
43
44 public function testTestObj(): void
45 {
46 $objTest_mock = $this->createMock(ilObjTest::class);
47 $this->testObj->setTestObj($objTest_mock);
48 $this->assertEquals($objTest_mock, $this->testObj->getTestObj());
49 }
50
51 public function testQuestionSetConfig(): void
52 {
53 $testQuestionSetConfig_mock = $this->createMock(ilTestQuestionSetConfig::class);
54 $this->testObj->setQuestionSetConfig($testQuestionSetConfig_mock);
55 $this->assertEquals($testQuestionSetConfig_mock, $this->testObj->getQuestionSetConfig());
56 }
57
58 public function testTestAccess(): void
59 {
60 $testAccess_mock = $this->createMock(ilTestAccess::class);
61 $this->testObj->setTestAccess($testAccess_mock);
62 $this->assertEquals($testAccess_mock, $this->testObj->getTestAccess());
63 }
64
65 public function testTestTabs(): void
66 {
67 $testTabsManager_mock = $this->createMock(ilTestTabsManager::class);
68 $this->testObj->setTestTabs($testTabsManager_mock);
69 $this->assertEquals($testTabsManager_mock, $this->testObj->getTestTabs());
70 }
71
72 public function testObjectiveParent(): void
73 {
74 $objectiveParent_mock = $this->createMock(ilTestObjectiveOrientedContainer::class);
75 $this->testObj->setObjectiveParent($objectiveParent_mock);
76 $this->assertEquals($objectiveParent_mock, $this->testObj->getObjectiveParent());
77 }
78}
Class ilTestBaseClass.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...