protected function QuickStartTest::tearDown in Drupal 10
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Core/Command/QuickStartTest.php \Drupal\Tests\Core\Command\QuickStartTest::tearDown()
- 9 core/tests/Drupal/Tests/Core/Command/QuickStartTest.php \Drupal\Tests\Core\Command\QuickStartTest::tearDown()
File
- core/
tests/ Drupal/ Tests/ Core/ Command/ QuickStartTest.php, line 68
Class
- QuickStartTest
- Tests the quick-start commands.
Namespace
Drupal\Tests\Core\CommandCode
protected function tearDown() : void {
if ($this->testDb) {
$test_site_directory = $this->root . DIRECTORY_SEPARATOR . $this->testDb
->getTestSitePath();
if (file_exists($test_site_directory)) {
// @todo use the tear down command from
// https://www.drupal.org/project/drupal/issues/2926633
// Delete test site directory.
$this
->fileUnmanagedDeleteRecursive($test_site_directory, [
BrowserTestBase::class,
'filePreDeleteCallback',
]);
}
}
parent::tearDown();
}