ILIAS  release_8 Revision v8.24
ilTestObjectiveOrientedContainerTest.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 ilTestObjectiveOrientedContainer();
34 }
35
37 {
38 $this->assertInstanceOf(ilTestObjectiveOrientedContainer::class, $this->testObj);
39 }
40
41 public function testObjId(): void
42 {
43 $this->testObj->setObjId(125);
44 $this->assertEquals(125, $this->testObj->getObjId());
45 }
46
47 public function testRefId(): void
48 {
49 $this->testObj->setRefId(125);
50 $this->assertEquals(125, $this->testObj->getRefId());
51 }
52
54 {
55 $this->assertFalse($this->testObj->isObjectiveOrientedPresentationRequired());
56
57 $this->testObj->setObjId(1254);
58 $this->assertTrue($this->testObj->isObjectiveOrientedPresentationRequired());
59 }
60}
Class ilTestBaseClass.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...