class InstallerObjectTest extends UnitTestCase
{ /**
* {@inheritdoc}
*/
protected function setUp(): void
{ parent::
setUp();
require_once __DIR__ . '/../../../../../includes/install.inc';
$additional_class_loader =
new ClassLoader();
$additional_class_loader->
addPsr4("Drupal\\Driver\\Database\\fake\\", __DIR__ . "/../../../../../tests/fixtures/database_drivers/custom/fake"
);
$additional_class_loader->
addPsr4("Drupal\\Core\\Database\\Driver\\corefake\\", __DIR__ . "/../../../../../tests/fixtures/database_drivers/core/corefake"
);
$additional_class_loader->
addPsr4("Drupal\\Driver\\Database\\corefake\\", __DIR__ . "/../../../../../tests/fixtures/database_drivers/custom/corefake"
);
$additional_class_loader->
addPsr4("Drupal\\driver_test\\Driver\\Database\\DrivertestMysql\\", __DIR__ . "/../../../../../../modules/system/tests/modules/driver_test/src/Driver/Database/DrivertestMysql"
);
$additional_class_loader->
register(TRUE
);
} /**
* @dataProvider providerDbInstallerObject
*/
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'
);