ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilMyTestSolutionsGUITest.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->testObj = new ilMyTestSolutionsGUI();
34  }
35 
37  {
38  $this->assertInstanceOf(ilMyTestSolutionsGUI::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 testObjectiveParent(): void
58  {
59  $obj_mock = $this->createMock(ilTestObjectiveOrientedContainer::class);
60  $this->testObj->setObjectiveParent($obj_mock);
61 
62  $this->assertEquals($obj_mock, $this->testObj->getObjectiveParent());
63  }
64 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Class ilTestBaseClass.