ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
ilTestTaxonomyTreeTest Class Reference

Class ilTestTaxonomyTreeTest. More...

+ Inheritance diagram for ilTestTaxonomyTreeTest:
+ Collaboration diagram for ilTestTaxonomyTreeTest:

Public Member Functions

 test_instantiateObject_shouldReturnInstance ()
 
- Public Member Functions inherited from ilTestBaseTestCase
 createInstanceOf (string $class_name, array $explicit_parameters=[])
 
 createTraitInstanceOf (string $class_name, array $explicit_parameters=[])
 

Protected Member Functions

 setUp ()
 
- Protected Member Functions inherited from ilTestBaseTestCase
 setUp ()
 
 tearDown ()
 

Private Attributes

ilTestTaxonomyTree $testObj
 

Additional Inherited Members

- Static Public Member Functions inherited from ilTestBaseTestCase
static callMethod ($obj, $name, array $args=[])
 
static getNonPublicPropertyValue (object $obj, string $name)
 
- Data Fields inherited from ilTestBaseTestCase
const string MOCKED_METHOD_WITHOUT_OUTPUT = 'MOCKED_METHOD_WITHOUT_OUTPUT'
 
const string DYNAMIC_CLASS = 'DynamicClass'
 
- Protected Attributes inherited from ilTestBaseTestCase
Container $dic = null
 
Container $backup_dic = null
 
- Static Protected Attributes inherited from ilTestBaseTestCase
static int $DYNAMIC_CLASS_COUNT = 0
 

Detailed Description

Member Function Documentation

◆ setUp()

ilTestTaxonomyTreeTest::setUp ( )
protected

Definition at line 29 of file ilTestTaxonomyTreeTest.php.

References addGlobal_ilAppEventHandler(), and setGlobalVariable().

29  : 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  }
addGlobal_ilAppEventHandler()
setGlobalVariable(string $name, mixed $value)
+ Here is the call graph for this function:

◆ test_instantiateObject_shouldReturnInstance()

ilTestTaxonomyTreeTest::test_instantiateObject_shouldReturnInstance ( )

Definition at line 48 of file ilTestTaxonomyTreeTest.php.

48  : void
49  {
50  $this->assertInstanceOf(ilTestTaxonomyTree::class, $this->testObj);
51  }

Field Documentation

◆ $testObj

ilTestTaxonomyTree ilTestTaxonomyTreeTest::$testObj
private

Definition at line 27 of file ilTestTaxonomyTreeTest.php.


The documentation for this class was generated from the following file: