ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilTestLearningObjectivesStatusGUITest.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
26{
28
29 protected function setUp(): void
30 {
31 parent::setUp();
32
33 $this->testObj = new ilTestLearningObjectivesStatusGUI(
34 $this->createMock(ilLanguage::class),
35 $this->createMock(ilCtrl::class),
36 $this->createMock(ILIAS\UI\Factory::class),
37 $this->createMock(ILIAS\UI\Renderer::class),
38 $this->createMock(ILIAS\Test\RequestDataCollector::class)
39 );
40 }
41
43 {
44 $this->assertInstanceOf(ilTestLearningObjectivesStatusGUI::class, $this->testObj);
45 }
46
47 public function testCrsObjId(): void
48 {
49 $crsObjId = 1240;
50 $this->testObj->setCrsObjId($crsObjId);
51 $this->assertEquals($crsObjId, $this->testObj->getCrsObjId());
52 }
53
54 public function testUsrId(): void
55 {
56 $usrId = 1240;
57 $this->testObj->setUsrId($usrId);
58 $this->assertEquals($usrId, $this->testObj->getUsrId());
59 }
60}
Class ilTestBaseClass.
Class ilTestLearningObjectivesStatusGUITest.
Interface Observer \BackgroundTasks Contains several chained tasks and infos about them.