@@ -44,7 +44,6 @@ public function testDbUrlToConnectionConversion($url, $database_array, $include_
44
44
* - database_array: An array containing the expected results.
45
45
*/
46
46
public static function providerConvertDbUrlToConnectionInfo () {
47
- $ root = dirname (__FILE__ , 7 );
48
47
return [
49
48
'MySql without prefix ' => [
50
49
'mysql://test_user:test_pass@test_host:3306/test_database ' ,
@@ -65,7 +64,7 @@ public static function providerConvertDbUrlToConnectionInfo() {
65
64
[
66
65
'driver ' => 'sqlite ' ,
67
66
'host ' => 'localhost ' ,
68
- 'database ' => $ root . ' / test_database ' ,
67
+ 'database ' => ' test_database ' ,
69
68
'namespace ' => 'Drupal\sqlite\Driver\Database\sqlite ' ,
70
69
'autoload ' => 'core/modules/sqlite/src/Driver/Database/sqlite/ ' ,
71
70
],
@@ -91,7 +90,7 @@ public static function providerConvertDbUrlToConnectionInfo() {
91
90
[
92
91
'driver ' => 'sqlite ' ,
93
92
'host ' => 'localhost ' ,
94
- 'database ' => $ root . ' / test_database ' ,
93
+ 'database ' => ' test_database ' ,
95
94
'prefix ' => 'foo ' ,
96
95
'namespace ' => 'Drupal\sqlite\Driver\Database\sqlite ' ,
97
96
'autoload ' => 'core/modules/sqlite/src/Driver/Database/sqlite/ ' ,
@@ -266,7 +265,7 @@ public static function providerConvertDbUrlToConnectionInfo() {
266
265
[
267
266
'driver ' => 'sqlite ' ,
268
267
'host ' => 'localhost ' ,
269
- 'database ' => $ root . ' / test_database ' ,
268
+ 'database ' => ' test_database ' ,
270
269
'namespace ' => 'Drupal\sqlite\Driver\Database\sqlite ' ,
271
270
'autoload ' => 'core/modules/sqlite/src/Driver/Database/sqlite/ ' ,
272
271
],
0 commit comments