You are here

public function SchemaFactoryTest::testInvalidEntityOnCreate in Schemata 8

@covers ::create

File

tests/src/Kernel/SchemaFactoryTest.php, line 102

Class

SchemaFactoryTest
Tests the Schema Factory service.

Namespace

Drupal\Tests\schemata\Kernel

Code

public function testInvalidEntityOnCreate() {
  $schema = $this->factory
    ->create('gastropod');
  $this
    ->assertEmpty($schema, 'Schemata should not produce a schema for non-existant entity types.');
  $schema = $this->factory
    ->create('node', 'gastropod');
  $this
    ->assertEmpty($schema, 'Schemata should not produce a schema for non-existant bundles.');
}