Definition at line 33 of file FactoryTest.php.
◆ testCreateElement()
ILIAS\MetaData\Elements\FactoryTest::testCreateElement |
( |
| ) |
|
Definition at line 35 of file FactoryTest.php.
35 : void
36 {
37 $factory = new Factory(new NullDataFactory());
38 $el = $factory->element(13, new NullDefinition(), 'value');
39
40 $this->assertInstanceOf(Element::class, $el);
41 $this->assertFalse($el->isRoot());
42 $this->assertFalse($el->isScaffold());
43 }
◆ testCreateRoot()
ILIAS\MetaData\Elements\FactoryTest::testCreateRoot |
( |
| ) |
|
Definition at line 45 of file FactoryTest.php.
45 : void
46 {
47 $factory = new Factory(new NullDataFactory());
48 $root = $factory->root(new NullDefinition());
49
50 $this->assertInstanceOf(ElementInterface::class, $root);
51 $this->assertTrue($root->isRoot());
52 $this->assertFalse($root->isScaffold());
53 }
◆ testCreateSet()
ILIAS\MetaData\Elements\FactoryTest::testCreateSet |
( |
| ) |
|
Definition at line 55 of file FactoryTest.php.
55 : void
56 {
57 $factory = new Factory(new NullDataFactory());
58 $root = $factory->root(new NullDefinition());
59 $set = $factory->set(new NullRessourceID(), $root);
60
61 $this->assertInstanceOf(SetInterface::class, $set);
62 }
The documentation for this class was generated from the following file: