ILIAS  release_8 Revision v8.24
ilParticipantsTestResultsGUITest.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->addGlobal_tpl();
35 $this->addGlobal_http();
36 $this->addGlobal_refinery();
37 $this->addGlobal_ilCtrl();
38 $this->addGlobal_lng();
39 $this->addGlobal_ilDB();
40 $this->addGlobal_ilTabs();
41 $this->addGlobal_ilToolbar();
42 $this->testObj = new ilParticipantsTestResultsGUI();
43 }
44
46 {
47 $this->assertInstanceOf(ilParticipantsTestResultsGUI::class, $this->testObj);
48 }
49
50 public function testTestObj(): void
51 {
52 $objTest_mock = $this->createMock(ilObjTest::class);
53
54 $this->assertNull($this->testObj->getTestObj());
55
56 $this->testObj->setTestObj($objTest_mock);
57 $this->assertEquals($objTest_mock, $this->testObj->getTestObj());
58 }
59
60 public function testQuestionSetConfig(): void
61 {
62 $testQuestionSetConfig_mock = $this->createMock(ilTestQuestionSetConfig::class);
63
64 $this->assertNull($this->testObj->getQuestionSetConfig());
65
66 $this->testObj->setQuestionSetConfig($testQuestionSetConfig_mock);
67 $this->assertEquals($testQuestionSetConfig_mock, $this->testObj->getQuestionSetConfig());
68 }
69
70 public function testTestAccess(): void
71 {
72 $testAccess_mock = $this->createMock(ilTestAccess::class);
73
74 $this->assertNull($this->testObj->getTestAccess());
75
76 $this->testObj->setTestAccess($testAccess_mock);
77 $this->assertEquals($testAccess_mock, $this->testObj->getTestAccess());
78 }
79
80 public function testObjectiveParent(): void
81 {
82 $objectiveParent_mock = $this->createMock(ilTestObjectiveOrientedContainer::class);
83
84 $this->assertNull($this->testObj->getObjectiveParent());
85
86 $this->testObj->setObjectiveParent($objectiveParent_mock);
87 $this->assertEquals($objectiveParent_mock, $this->testObj->getObjectiveParent());
88 }
89}
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.