Definition at line 28 of file BaseSetTest.php.
◆ getBaseSet()
Definition at line 30 of file BaseSetTest.php.
32 : BaseSet {
33 return new class ($root) extends BaseSet {
35 BaseElementInterface $root
36 ) {
38 }
39 };
40 }
__construct()
Constructor setup ILIAS global object @access public.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
References ILIAS\GlobalScreen\Provider\__construct().
◆ getRoot()
ILIAS\MetaData\Elements\Base\BaseSetTest::getRoot |
( |
| ) |
|
|
protected |
Definition at line 42 of file BaseSetTest.php.
42 : BaseElementInterface
43 {
44 return new class () extends NullBaseElement {
45 public function getMDID():
int|
NoID
46 {
47 return NoID::ROOT;
48 }
49
50 public function isRoot(): bool
51 {
52 return true;
53 }
54 };
55 }
◆ testClone()
ILIAS\MetaData\Elements\Base\BaseSetTest::testClone |
( |
| ) |
|
Definition at line 73 of file BaseSetTest.php.
73 : void
74 {
77
78 $cloned_set = clone $set;
79 $this->assertEquals($root, $cloned_set->getRoot());
80 $this->assertNotSame($root, $cloned_set->getRoot());
81 }
◆ testGetRoot()
ILIAS\MetaData\Elements\Base\BaseSetTest::testGetRoot |
( |
| ) |
|
Definition at line 57 of file BaseSetTest.php.
57 : void
58 {
61
62 $this->assertSame($root, $set->getRoot());
63 }
◆ testNotRootException()
ILIAS\MetaData\Elements\Base\BaseSetTest::testNotRootException |
( |
| ) |
|
Definition at line 65 of file BaseSetTest.php.
65 : void
66 {
67 $not_root = new NullBaseElement();
68
69 $this->expectException(\ilMDElementsException::class);
71 }
The documentation for this class was generated from the following file: