public function SchemaFactoryTest::testCreateNodeBaseSchema in Schemata 8
@covers ::create
File
- tests/
src/ Kernel/ SchemaFactoryTest.php, line 63
Class
- SchemaFactoryTest
- Tests the Schema Factory service.
Namespace
Drupal\Tests\schemata\KernelCode
public function testCreateNodeBaseSchema() {
$schema = $this->factory
->create('node');
$this
->assertInstanceOf(SchemaInterface::class, $schema);
$this
->assertNotInstanceOf(NodeSchema::class, $schema);
$this
->assertSchemaHasNoBundle($schema);
$this
->assertSchemaHasTitle($schema);
$this
->assertSchemaHasDescription($schema);
$this
->assertSchemaHasProperties($schema);
}