You are here

protected function SchemaFactoryTest::assertSchemaHasNoBundle in Schemata 8

Assert the schema has no entity bundle.

Parameters

\Drupal\schemata\Schema\SchemaInterface $schema: Schema to evaluate.

2 calls to SchemaFactoryTest::assertSchemaHasNoBundle()
SchemaFactoryTest::testCreateNodeBaseSchema in tests/src/Kernel/SchemaFactoryTest.php
@covers ::create
SchemaFactoryTest::testCreateUserSchema in tests/src/Kernel/SchemaFactoryTest.php
@covers ::create

File

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

Class

SchemaFactoryTest
Tests the Schema Factory service.

Namespace

Drupal\Tests\schemata\Kernel

Code

protected function assertSchemaHasNoBundle(SchemaInterface $schema) {
  $this
    ->assertEmpty($schema
    ->getBundleId());
}