function InstallerTranslationDownloadTest::setUp
Same name and namespace in other branches
- 11.x core/tests/Drupal/KernelTests/Core/Installer/InstallerTranslationDownloadTest.php \Drupal\KernelTests\Core\Installer\InstallerTranslationDownloadTest::setUp()
Overrides KernelTestBase::setUp
File
-
core/
tests/ Drupal/ KernelTests/ Core/ Installer/ InstallerTranslationDownloadTest.php, line 69
Class
- InstallerTranslationDownloadTest
- Tests that profile translations are downloaded by the installer.
Namespace
Drupal\KernelTests\Core\InstallerCode
protected function setUp() : void {
parent::setUp();
// We will be calling installer functions directly.
require_once 'core/includes/install.core.inc';
// We need to restore the error handler before tearDown, or the testing
// system will yell at us.
$this->errorHandler = get_error_handler();
// Building the container creates the key_value table, so drop it to
// convince the installer that Drupal is not installed.
Database::getConnection()->schema()
->dropTable('key_value');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.