ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
ilTestTaxonomyTreeTest.php
Go to the documentation of this file.
1 <?php
2 
19 declare(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 }
addGlobal_ilAppEventHandler()
Class ilTestTaxonomyTreeTest.
setGlobalVariable(string $name, mixed $value)