DatabaseTestBase.php in Drupal 10
Same filename in this branch
Same filename and directory in other branches
Namespace
Drupal\Tests\system\Functional\DatabaseFile
core/modules/system/tests/src/Functional/Database/DatabaseTestBase.phpView 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() : void {
parent::setUp();
DatabaseKernelTestBase::addSampleData();
}
}
Classes
Name | Description |
---|---|
DatabaseTestBase | Base class for databases database tests. |