protected function InstallerDatabaseErrorMessagesTest::setUpSettings in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/system/src/Tests/Installer/InstallerDatabaseErrorMessagesTest.php \Drupal\system\Tests\Installer\InstallerDatabaseErrorMessagesTest::setUpSettings()
inheritdoc}
Overrides InstallerTestBase::setUpSettings
File
- core/
modules/ system/ src/ Tests/ Installer/ InstallerDatabaseErrorMessagesTest.php, line 23 - Contains \Drupal\system\Tests\Installer\InstallerDatabaseErrorMessagesTest.
Class
- InstallerDatabaseErrorMessagesTest
- Tests the installer with database errors.
Namespace
Drupal\system\Tests\InstallerCode
protected function setUpSettings() {
// We are creating a table here to force an error in the installer because
// it will try and create the drupal_install_test table as this is part of
// the standard database tests performed by the installer in
// Drupal\Core\Database\Install\Tasks.
Database::getConnection('default')
->query('CREATE TABLE {drupal_install_test} (id int NULL)');
parent::setUpSettings();
}