ILIAS  trunk Revision v11.0_alpha-1761-g6dbbfa7b760
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilTestSkillEvaluationGUITest.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
26 {
28 
29  protected function setUp(): void
30  {
31  parent::setUp();
32 
33  $this->testObj = new ilTestSkillEvaluationGUI(
34  $this->getTestObjMock(),
35  $this->createMock(ilCtrl::class),
36  $this->createMock(ilGlobalPageTemplate::class),
37  $this->createMock(ilLanguage::class),
38  $this->createMock(ilDBInterface::class),
39  $this->createMock(\ILIAS\Test\Logging\TestLogger::class),
40  $this->createMock(ILIAS\Skill\Service\SkillService::class),
41  $this->createMock(ILIAS\Test\RequestDataCollector::class)
42  );
43  }
44 
46  {
47  $this->assertInstanceOf(ilTestSkillEvaluationGUI::class, $this->testObj);
48  }
49 
50  public function testQuestionList(): void
51  {
52  $mock = $this->createMock(ilAssQuestionList::class);
53  $this->testObj->setQuestionList($mock);
54  $this->assertEquals($mock, $this->testObj->getQuestionList());
55  }
56 
57  public function testObjectiveOrientedContainer(): void
58  {
59  $mock = $this->createMock(ilTestObjectiveOrientedContainer::class);
60  $this->testObj->setObjectiveOrientedContainer($mock);
61  $this->assertEquals($mock, $this->testObj->getObjectiveOrientedContainer());
62  }
63 
64  public function testTestSession(): void
65  {
66  $mock = $this->createMock(ilTestSession::class);
67  $this->testObj->setTestSession($mock);
68  $this->assertEquals($mock, $this->testObj->getTestSession());
69  }
70 }
Interface Observer Contains several chained tasks and infos about them.
Class ilTestSkillEvaluationGUITest.