You are here

protected function SchemaFactoryTest::assertSchemaHasTitle in Schemata 8

Assert the schema has a title.

Parameters

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

3 calls to SchemaFactoryTest::assertSchemaHasTitle()
SchemaFactoryTest::testCreateNodeArticleSchema in tests/src/Kernel/SchemaFactoryTest.php
@covers ::create
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 139

Class

SchemaFactoryTest
Tests the Schema Factory service.

Namespace

Drupal\Tests\schemata\Kernel

Code

protected function assertSchemaHasTitle(SchemaInterface $schema) {
  $this
    ->assertNotEmpty($schema
    ->getMetadata()['title']);
}