class DriverSpecificDatabaseTestBase

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

Base class for driver specific database tests.

Hierarchy

Expanded class hierarchy of DriverSpecificDatabaseTestBase

7 files declare their use of DriverSpecificDatabaseTestBase
ConnectionTest.php in core/modules/mysql/tests/src/Kernel/mysql/ConnectionTest.php
LargeQueryTest.php in core/modules/mysql/tests/src/Kernel/mysql/LargeQueryTest.php
MysqlDriverLegacyTest.php in core/modules/mysql/tests/src/Kernel/mysql/MysqlDriverLegacyTest.php
NextIdTest.php in core/modules/mysql/tests/src/Kernel/mysql/NextIdTest.php
PgsqlDriverLegacyTest.php in core/modules/pgsql/tests/src/Kernel/pgsql/PgsqlDriverLegacyTest.php

... See full list

File

core/tests/Drupal/KernelTests/Core/Database/DriverSpecificDatabaseTestBase.php, line 8

Namespace

Drupal\KernelTests\Core\Database
View source
abstract class DriverSpecificDatabaseTestBase extends DriverSpecificKernelTestBase {
  use DatabaseTestSchemaDataTrait;
  use DatabaseTestSchemaInstallTrait;
  
  /**
   * {@inheritdoc}
   */
  protected static $modules = [
    'database_test',
  ];
  
  /**
   * {@inheritdoc}
   */
  protected function setUp() : void {
    parent::setUp();
    $this->installSampleSchema();
    $this->addSampleData();
  }

}

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