ILIAS  trunk Revision v11.0_alpha-1769-g99a433fe2dc
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
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);
43  $this->addGlobal_ilAppEventHandler();
44 
45  $this->testObj = new ilTestTaxonomyTree(0);
46  }
47 
49  {
50  $this->assertInstanceOf(ilTestTaxonomyTree::class, $this->testObj);
51  }
52 }
Class ilTestTaxonomyTreeTest.