function DatabaseTest::addD8CustomDrivers
Same name in other branches
- 9 core/tests/Drupal/Tests/Core/Database/DatabaseTest.php \Drupal\Tests\Core\Database\DatabaseTest::addD8CustomDrivers()
- 10 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\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.