You are here

public function InstallerObjectTest::testDbInstallerObject in Drupal 9

Same name and namespace in other branches
  1. 8 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 44

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) {
  $object = db_installer_object($driver, $namespace);
  $this
    ->assertEquals(get_class($object), $expected_class_name);
}