ILIAS  release_8 Revision v8.24
ilMyTestResultsGUITest.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 ilMyTestResultsGUI();
34 }
35
37 {
38 $this->assertInstanceOf(ilMyTestResultsGUI::class, $this->testObj);
39 }
40
41 public function testTestObj(): void
42 {
43 $obj_mock = $this->createMock(ilObjTest::class);
44 $this->testObj->setTestObj($obj_mock);
45
46 $this->assertEquals($obj_mock, $this->testObj->getTestObj());
47 }
48
49 public function testTestAccess(): void
50 {
51 $obj_mock = $this->createMock(ilTestAccess::class);
52 $this->testObj->setTestAccess($obj_mock);
53
54 $this->assertEquals($obj_mock, $this->testObj->getTestAccess());
55 }
56
57 public function testTestSession(): void
58 {
59 $obj_mock = $this->createMock(ilTestSession::class);
60 $this->testObj->setTestSession($obj_mock);
61
62 $this->assertEquals($obj_mock, $this->testObj->getTestSession());
63 }
64
65 public function testObjectiveParent(): void
66 {
67 $obj_mock = $this->createMock(ilTestObjectiveOrientedContainer::class);
68 $this->testObj->setObjectiveParent($obj_mock);
69
70 $this->assertEquals($obj_mock, $this->testObj->getObjectiveParent());
71 }
72}
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Class ilTestBaseClass.