ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
ScaffoldFactoryTest.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
32 
33 class ScaffoldFactoryTest extends TestCase
34 {
35  public function testCreateScaffold(): void
36  {
37  $factory = new ScaffoldFactory(new NullDataFactory());
38  $scaffold = $factory->scaffold(new NullDefinition());
39 
40  $this->assertInstanceOf(ElementInterface::class, $scaffold);
41  $this->assertSame(NoID::SCAFFOLD, $scaffold->getMDID());
42  $this->assertSame(Type::NULL, $scaffold->getData()->type());
43  }
44 }