public function UrlConversionTest::testDbUrlToConnectionConversion in Drupal 10
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Core/Database/UrlConversionTest.php \Drupal\Tests\Core\Database\UrlConversionTest::testDbUrltoConnectionConversion()
- 9 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 conversions.
Namespace
Drupal\Tests\Core\DatabaseCode
public function testDbUrlToConnectionConversion($url, $database_array) {
$result = Database::convertDbUrlToConnectionInfo($url, $this->root);
$this
->assertEquals($database_array, $result);
}