function UrlConversionTest::testDeprecationOfRootParameter

@covers ::convertDbUrlToConnectionInfo

Attributes

#[IgnoreDeprecations]

File

core/tests/Drupal/Tests/Core/Database/UrlConversionTest.php, line 536

Class

UrlConversionTest
Tests for database URL to/from database connection array conversions.

Namespace

Drupal\Tests\Core\Database

Code

public function testDeprecationOfRootParameter() : void {
  $this->expectDeprecation('Passing a string $root value to Drupal\\Core\\Database\\Database::convertDbUrlToConnectionInfo() is deprecated in drupal:11.3.0 and will be removed in drupal:12.0.0. There is no replacement. See https://www.drupal.org/node/3511287');
  Database::convertDbUrlToConnectionInfo('sqlite://localhost/test_database', $this->root, TRUE);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.