public function SchemaFactoryTest::testCreateUserSchema in Schemata 8
@covers ::create
File
- tests/src/ Kernel/ SchemaFactoryTest.php, line 89 
Class
- SchemaFactoryTest
- Tests the Schema Factory service.
Namespace
Drupal\Tests\schemata\KernelCode
public function testCreateUserSchema() {
  $schema = $this->factory
    ->create('user');
  $this
    ->assertInstanceOf(SchemaInterface::class, $schema);
  $this
    ->assertNotInstanceOf(NodeSchema::class, $schema);
  $this
    ->assertSchemaHasNoBundle($schema);
  $this
    ->assertSchemaHasTitle($schema);
  $this
    ->assertSchemaHasDescription($schema);
  $this
    ->assertSchemaHasProperties($schema);
}