DriverSpecificSchemaTestBase.php

Same filename in other branches
  1. 10 core/tests/Drupal/KernelTests/Core/Database/DriverSpecificSchemaTestBase.php
  2. 11.x core/tests/Drupal/KernelTests/Core/Database/DriverSpecificSchemaTestBase.php

Namespace

Drupal\KernelTests\Core\Database

File

core/tests/Drupal/KernelTests/Core/Database/DriverSpecificSchemaTestBase.php

View source
<?php

namespace Drupal\KernelTests\Core\Database;

use Drupal\Tests\Core\Database\SchemaIntrospectionTestTrait;

/**
 * Tests table creation and modification via the schema API.
 */
abstract class DriverSpecificSchemaTestBase extends DriverSpecificKernelTestBase {
    use SchemaIntrospectionTestTrait;
    
    /**
     * Database schema instance.
     */
    protected $schema;
    
    /**
     * {@inheritdoc}
     */
    protected function setUp() : void {
        parent::setUp();
        $this->schema = $this->connection
            ->schema();
    }

}

Classes

Title Deprecated Summary
DriverSpecificSchemaTestBase Tests table creation and modification via the schema API.

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