You are here

public function DatabaseTest::providerFindDriverAutoloadDirectory in Drupal 9

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

Data provider for ::testFindDriverAutoloadDirectory().

Return value

array

File

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

Class

DatabaseTest
@coversDefaultClass \Drupal\Core\Database\Database

Namespace

Drupal\Tests\Core\Database

Code

public function providerFindDriverAutoloadDirectory() {
  return [
    'core mysql' => [
      FALSE,
      'Drupal\\Core\\Database\\Driver\\mysql',
    ],
    'D8 custom fake' => [
      FALSE,
      'Drupal\\Driver\\Database\\corefake',
    ],
    'module mysql' => [
      'core/modules/system/tests/modules/driver_test/src/Driver/Database/DrivertestMysql/',
      'Drupal\\driver_test\\Driver\\Database\\DrivertestMysql',
    ],
  ];
}