DatabaseWebTestBase.php

Namespace

Drupal\system\Tests\Database

File

core/modules/system/src/Tests/Database/DatabaseWebTestBase.php

View source
<?php

namespace Drupal\system\Tests\Database;

@trigger_error(__NAMESPACE__ . '\\DatabaseWebTestBase is deprecated in Drupal 8.4.0 and will be removed before Drupal 9.0.0. Instead, use \\Drupal\\Tests\\system\\Functional\\Database\\DatabaseTestBase', E_USER_DEPRECATED);
use Drupal\KernelTests\Core\Database\DatabaseTestBase;
use Drupal\simpletest\WebTestBase;

/**
 * Base class for databases database tests.
 *
 * @deprecated in drupal:8.4.0 and is removed from drupal:9.0.0. Instead
 *   use \Drupal\Tests\system\Functional\Database\DatabaseTestBase.
 */
abstract class DatabaseWebTestBase extends WebTestBase {
  
  /**
   * Modules to enable.
   *
   * @var array
   */
  public static $modules = [
    'database_test',
  ];
  protected function setUp() {
    parent::setUp();
    DatabaseTestBase::addSampleData();
  }

}

Classes

Title Deprecated Summary
DatabaseWebTestBase

in drupal:8.4.0 and is removed from drupal:9.0.0. Instead use \Drupal\Tests\system\Functional\Database\DatabaseTestBase.

Base class for databases database tests.

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