ILIAS  trunk Revision v11.0_alpha-1846-g895b5f47236
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
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.

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

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  }
+ Here is the caller graph for this function:

◆ testGetRoot()

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

Definition at line 45 of file StructureSetTest.php.

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

45  : void
46  {
47  $root = $this->getRoot();
48  $set = new StructureSet($root);
49 
50  $this->assertSame($root, $set->getRoot());
51  }
+ Here is the call graph for this function:

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