$expected =
[ $driver =>
[ 'driver' =>
$driver,
'namespace' =>
$expected_namespace,
'prefix' => '',
],
];
if (!
is_null($expected_autoload)) { $expected[$driver]['autoload'
] =
$expected_autoload;
} $this->
assertEquals($expected, Database::
getConnectionInfo('mock'
));
} /**
* Provides data for testDatabaseInfoInitialization().
*/
public function providerTestDatabaseInfoInitialization(): array
{ return [ ['mysql', NULL, NULL, 'Drupal\\mysql\\Driver\\Database\\mysql', 'core/modules/mysql/src/Driver/Database/mysql/'
],
['mysql', '', NULL, 'Drupal\\mysql\\Driver\\Database\\mysql', 'core/modules/mysql/src/Driver/Database/mysql/'
],
['mysql', 'Drupal\\Core\\Database\\Driver\\mysql', NULL, 'Drupal\\mysql\\Driver\\Database\\mysql', 'core/modules/mysql/src/Driver/Database/mysql/'
],
['mysql', 'Drupal\\mysql\\Driver\\Database\\mysql', NULL, 'Drupal\\mysql\\Driver\\Database\\mysql', 'core/modules/mysql/src/Driver/Database/mysql/'
],
[