ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\MetaData\Elements\Structure\StructureSetTest Class Reference
+ Inheritance diagram for ILIAS\MetaData\Elements\Structure\StructureSetTest:
+ Collaboration diagram for ILIAS\MetaData\Elements\Structure\StructureSetTest:

Public Member Functions

 testGetRoot ()
 

Protected Member Functions

 getRoot ()
 

Detailed Description

Definition at line 28 of file StructureSetTest.php.

Member Function Documentation

◆ getRoot()

ILIAS\MetaData\Elements\Structure\StructureSetTest::getRoot ( )
protected

Definition at line 30 of file StructureSetTest.php.

30 : StructureElementInterface
31 {
32 return new class () extends NullStructureElement {
33 public function getMDID(): NoID
34 {
35 return NoID::ROOT;
36 }
37
38 public function isRoot(): bool
39 {
40 return true;
41 }
42 };
43 }

Referenced by ILIAS\MetaData\Elements\Structure\StructureSetTest\testGetRoot().

+ Here is the caller graph for this function:

◆ testGetRoot()

ILIAS\MetaData\Elements\Structure\StructureSetTest::testGetRoot ( )

Definition at line 45 of file StructureSetTest.php.

45 : void
46 {
47 $root = $this->getRoot();
48 $set = new StructureSet($root);
49
50 $this->assertSame($root, $set->getRoot());
51 }

References ILIAS\MetaData\Elements\Structure\StructureSetTest\getRoot().

+ Here is the call graph for this function:

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