ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilTestTaxonomyTreeTest.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 $db_mock = $this->createMock(ilDBInterface::class);
34 $returnValue = new stdClass();
35 $returnValue->child = 1;
36 $db_mock
37 ->expects($this->once())
38 ->method("fetchObject")
39 ->willReturn($returnValue)
40 ;
41
42 $this->setGlobalVariable("ilDB", $db_mock);
44
45 $this->testObj = new ilTestTaxonomyTree(0);
46 }
47
49 {
50 $this->assertInstanceOf(ilTestTaxonomyTree::class, $this->testObj);
51 }
52}
Class ilTestBaseClass.
Class ilTestTaxonomyTreeTest.
addGlobal_ilAppEventHandler()
setGlobalVariable(string $name, mixed $value)