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

Public Member Functions

 testGetRoot ()
 
 testGetRessourceID ()
 

Protected Member Functions

 getRoot ()
 

Detailed Description

Definition at line 34 of file SetTest.php.

Member Function Documentation

◆ getRoot()

ILIAS\MetaData\Elements\SetTest::getRoot ( )
protected

Definition at line 36 of file SetTest.php.

36 : ElementInterface
37 {
38 return new class () extends NullElement {
39 public function getMDID(): NoID|int
40 {
41 return NoID::ROOT;
42 }
43
44 public function isRoot(): bool
45 {
46 return true;
47 }
48 };
49 }

Referenced by ILIAS\MetaData\Elements\SetTest\testGetRessourceID(), and ILIAS\MetaData\Elements\SetTest\testGetRoot().

+ Here is the caller graph for this function:

◆ testGetRessourceID()

ILIAS\MetaData\Elements\SetTest::testGetRessourceID ( )

Definition at line 59 of file SetTest.php.

59 : void
60 {
61 $root = $this->getRoot();
62 $id = new NullRessourceID();
63 $set = new Set($id, $root);
64
65 $this->assertSame($id, $set->getRessourceID());
66 }
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23

References $id, and ILIAS\MetaData\Elements\SetTest\getRoot().

+ Here is the call graph for this function:

◆ testGetRoot()

ILIAS\MetaData\Elements\SetTest::testGetRoot ( )

Definition at line 51 of file SetTest.php.

51 : void
52 {
53 $root = $this->getRoot();
54 $set = new Set(new NullRessourceID(), $root);
55
56 $this->assertSame($root, $set->getRoot());
57 }

References ILIAS\MetaData\Elements\SetTest\getRoot().

+ Here is the call graph for this function:

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