You are here

public function InstallerObjectTest::testDbInstallerObject in Drupal 10

Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/Core/Database/InstallerObjectTest.php \Drupal\Tests\Core\Database\InstallerObjectTest::testDbInstallerObject()
  2. 9 core/tests/Drupal/Tests/Core/Database/InstallerObjectTest.php \Drupal\Tests\Core\Database\InstallerObjectTest::testDbInstallerObject()

@dataProvider providerDbInstallerObject

File

core/tests/Drupal/Tests/Core/Database/InstallerObjectTest.php, line 45

Class

InstallerObjectTest
Tests the db_installer_object() function that is used during installation.

Namespace

Drupal\Tests\Core\Database

Code

public function testDbInstallerObject($driver, $namespace, $expected_class_name) {
  $this
    ->expectDeprecation('db_installer_object() is deprecated in drupal:10.0.0 and is removed from drupal:11.0.0. There is no replacement. See https://www.drupal.org/node/3256641');
  $object = db_installer_object($driver, $namespace);
  $this
    ->assertEquals(get_class($object), $expected_class_name);
}