function DatabaseTest::addD8CustomDrivers
Same name in other branches
- 9 core/tests/Drupal/Tests/Core/Database/DatabaseTest.php \Drupal\Tests\Core\Database\DatabaseTest::addD8CustomDrivers()
- 8.9.x 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 139
Class
- DatabaseTest
- @coversDefaultClass \Drupal\Core\Database\Database
Namespace
Drupal\Tests\Core\DatabaseCode
protected function addD8CustomDrivers() {
$this->additionalClassloader
->addPsr4("Drupal\\Driver\\Database\\CoreFake\\", __DIR__ . "/../../../../../tests/fixtures/database_drivers/custom/CoreFake");
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.