public function UrlConversionTest::testDbUrltoConnectionConversion in Drupal 8
Same name and namespace 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()
@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);
}