You are here

DatabaseTestBase.php in Drupal 9

File

core/modules/system/tests/src/Functional/Database/DatabaseTestBase.php
View source
<?php

namespace Drupal\Tests\system\Functional\Database;

use Drupal\KernelTests\Core\Database\DatabaseTestBase as DatabaseKernelTestBase;
use Drupal\Tests\BrowserTestBase;

/**
 * Base class for databases database tests.
 */
abstract class DatabaseTestBase extends BrowserTestBase {

  /**
   * {@inheritdoc}
   */
  protected static $modules = [
    'database_test',
  ];

  /**
   * {@inheritdoc}
   */
  protected function setUp() {
    parent::setUp();
    DatabaseKernelTestBase::addSampleData();
  }

}

Classes

Namesort descending Description
DatabaseTestBase Base class for databases database tests.