ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilTestObjectiveOrientedContainerTest.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 ilTestObjectiveOrientedContainer();
34 }
35
37 {
38 $this->assertInstanceOf(ilTestObjectiveOrientedContainer::class, $this->testObj);
39 }
40
41 public function testObjId(): void
42 {
43 $objId = 125;
44 $this->testObj->setObjId($objId);
45 $this->assertEquals($objId, $this->testObj->getObjId());
46 }
47
48 public function testRefId(): void
49 {
50 $refId = 125;
51 $this->testObj->setRefId($refId);
52 $this->assertEquals($refId, $this->testObj->getRefId());
53 }
54
56 {
57 $this->assertFalse($this->testObj->isObjectiveOrientedPresentationRequired());
58
59 $this->testObj->setObjId(1254);
60 $this->assertTrue($this->testObj->isObjectiveOrientedPresentationRequired());
61 }
62}
Class ilTestBaseClass.
Class ilTestObjectiveOrientedContainerTest.
$objId
Definition: xapitoken.php:57
$refId
Definition: xapitoken.php:58