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\KernelCode
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.');
}