public function UrlConversionTest::testGetInvalidArgumentExceptionInUrlConversion in Drupal 10
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Core/Database/UrlConversionTest.php \Drupal\Tests\Core\Database\UrlConversionTest::testGetInvalidArgumentExceptionInUrlConversion()
- 9 core/tests/Drupal/Tests/Core/Database/UrlConversionTest.php \Drupal\Tests\Core\Database\UrlConversionTest::testGetInvalidArgumentExceptionInUrlConversion()
Tests ::convertDbUrlToConnectionInfo() exception for invalid arguments.
@dataProvider providerInvalidArgumentsUrlConversion
File
- core/
tests/ Drupal/ Tests/ Core/ Database/ UrlConversionTest.php, line 247
Class
- UrlConversionTest
- Tests for database URL to/from database connection array conversions.
Namespace
Drupal\Tests\Core\DatabaseCode
public function testGetInvalidArgumentExceptionInUrlConversion($url, $root, $expected_exception_message) {
$this
->expectException(\InvalidArgumentException::class);
$this
->expectExceptionMessage($expected_exception_message);
Database::convertDbUrlToConnectionInfo($url, $root);
}