class DriverSpecificSchemaTestBase

Same name and namespace in other branches
  1. 11.x core/tests/Drupal/KernelTests/Core/Database/DriverSpecificSchemaTestBase.php \Drupal\KernelTests\Core\Database\DriverSpecificSchemaTestBase

Tests table creation and modification via the schema API.

Hierarchy

Expanded class hierarchy of DriverSpecificSchemaTestBase

2 files declare their use of DriverSpecificSchemaTestBase
SchemaTest.php in core/modules/mysql/tests/src/Kernel/mysql/SchemaTest.php
SchemaTest.php in core/modules/pgsql/tests/src/Kernel/pgsql/SchemaTest.php

File

core/tests/Drupal/KernelTests/Core/Database/DriverSpecificSchemaTestBase.php, line 10

Namespace

Drupal\KernelTests\Core\Database
View source
abstract class DriverSpecificSchemaTestBase extends DriverSpecificKernelTestBase {
  use SchemaIntrospectionTestTrait;
  
  /**
   * Database schema instance.
   */
  protected $schema;
  
  /**
   * {@inheritdoc}
   */
  protected function setUp() : void {
    parent::setUp();
    $this->schema = $this->connection
      ->schema();
  }

}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.