function InstallerObjectTest::testDbInstallerObject
Same name in other branches
- 9 core/tests/Drupal/Tests/Core/Database/InstallerObjectTest.php \Drupal\Tests\Core\Database\InstallerObjectTest::testDbInstallerObject()
- 8.9.x 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 47
Class
- InstallerObjectTest
- Tests the db_installer_object() function that is used during installation.
Namespace
Drupal\Tests\Core\DatabaseCode
public function testDbInstallerObject($driver, $namespace, $expected_class_name) : void {
$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);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.