ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilObjTestTest.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
27{
29
30 protected function setUp(): void
31 {
32 parent::setUp();
33
34 $this->addGlobal_ilErr();
35 $this->addGlobal_ilLog();
36 $this->addGlobal_ilSetting();
38 $this->addGlobal_filesystem();
40
41 $this->testObj = new ilObjTest();
42 }
43
45 {
46 $this->assertInstanceOf(ilObjTest::class, $this->testObj);
47 }
48
49 public function testTmpCopyWizardCopyId(): void
50 {
51 $tmpCopyWizardCopyId = 12;
52 $this->testObj->setTmpCopyWizardCopyId($tmpCopyWizardCopyId);
53 $this->assertEquals($tmpCopyWizardCopyId, $this->testObj->getTmpCopyWizardCopyId());
54 }
55
56 public function testTestId(): void
57 {
58 $a_id = 15;
59 $this->testObj->setTestId($a_id);
60 $this->assertEquals($a_id, $this->testObj->getTestId());
61 }
62}
Class ilObjTestTest.
ilObjTest $testObj
test_instantiateObject_shouldReturnInstance()
Class ilTestBaseClass.
addGlobal_filesystem()
addGlobal_ilAppEventHandler()
addGlobal_ilComponentFactory()