You are here

protected function DatabaseTest::addD8CustomDrivers in Drupal 8

Same name and namespace in other branches
  1. 9 core/tests/Drupal/Tests/Core/Database/DatabaseTest.php \Drupal\Tests\Core\Database\DatabaseTest::addD8CustomDrivers()

Adds a database driver that uses the D8's Drupal\Driver\Database namespace.

File

core/tests/Drupal/Tests/Core/Database/DatabaseTest.php, line 111

Class

DatabaseTest
@coversDefaultClass \Drupal\Core\Database\Database

Namespace

Drupal\Tests\Core\Database

Code

protected function addD8CustomDrivers() {
  $this->additionalClassloader
    ->addPsr4("Drupal\\Driver\\Database\\corefake\\", __DIR__ . "/../../../../../tests/fixtures/database_drivers/custom/corefake");
}