You are here

protected function SchemaFactoryTest::assertSchemaHasBundle in Schemata 8

Assert the schema has the specified bundle.

Parameters

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

string $bundle: Bundle we expect the Schema to self-declare.

1 call to SchemaFactoryTest::assertSchemaHasBundle()
SchemaFactoryTest::testCreateNodeArticleSchema in tests/src/Kernel/SchemaFactoryTest.php
@covers ::create

File

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

Class

SchemaFactoryTest
Tests the Schema Factory service.

Namespace

Drupal\Tests\schemata\Kernel

Code

protected function assertSchemaHasBundle(SchemaInterface $schema, $bundle) {
  $this
    ->assertEquals($bundle, $schema
    ->getBundleId());
}