function DatabaseTest::testFindDriverAutoloadDirectory

Same name and namespace in other branches
  1. 8.9.x core/tests/Drupal/Tests/Core/Database/DatabaseTest.php \Drupal\Tests\Core\Database\DatabaseTest::testFindDriverAutoloadDirectory()
  2. 10 core/tests/Drupal/Tests/Core/Database/DatabaseTest.php \Drupal\Tests\Core\Database\DatabaseTest::testFindDriverAutoloadDirectory()

@covers ::findDriverAutoloadDirectory @dataProvider providerFindDriverAutoloadDirectory

File

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

Class

DatabaseTest
@coversDefaultClass <a href="/api/drupal/core%21lib%21Drupal%21Core%21Database%21Database.php/class/Database/9" title="Primary front-controller for the database system." class="local">\Drupal\Core\Database\Database</a>

Namespace

Drupal\Tests\Core\Database

Code

public function testFindDriverAutoloadDirectory($expected, $namespace, $include_test_drivers) {
    $this->assertSame($expected, Database::findDriverAutoloadDirectory($namespace, $this->root, $include_test_drivers));
}

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