function UrlConversionTest::testDbUrltoConnectionConversion
Same name in other branches
- 9 core/tests/Drupal/Tests/Core/Database/UrlConversionTest.php \Drupal\Tests\Core\Database\UrlConversionTest::testDbUrlToConnectionConversion()
- 10 core/tests/Drupal/Tests/Core/Database/UrlConversionTest.php \Drupal\Tests\Core\Database\UrlConversionTest::testDbUrlToConnectionConversion()
- 11.x core/tests/Drupal/Tests/Core/Database/UrlConversionTest.php \Drupal\Tests\Core\Database\UrlConversionTest::testDbUrlToConnectionConversion()
@covers ::convertDbUrlToConnectionInfo
@dataProvider providerConvertDbUrlToConnectionInfo
File
-
core/
tests/ Drupal/ Tests/ Core/ Database/ UrlConversionTest.php, line 51
Class
- UrlConversionTest
- Tests for database URL to/from database connection array coversions.
Namespace
Drupal\Tests\Core\DatabaseCode
public function testDbUrltoConnectionConversion($root, $url, $database_array) {
$result = Database::convertDbUrlToConnectionInfo($url, $root ?: $this->root);
$this->assertEquals($database_array, $result);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.