protected function SchemaFactoryTest::assertSchemaHasDescription in Schemata 8
Assert the schema has a description.
Parameters
\Drupal\schemata\Schema\SchemaInterface $schema: Schema to evaluate.
3 calls to SchemaFactoryTest::assertSchemaHasDescription()
- 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 149
Class
- SchemaFactoryTest
- Tests the Schema Factory service.
Namespace
Drupal\Tests\schemata\KernelCode
protected function assertSchemaHasDescription(SchemaInterface $schema) {
$this
->assertNotEmpty($schema
->getMetadata()['description']);
}