function RecipeQuickStartTest::tearDown
Same name in other branches
- 10 core/tests/Drupal/Tests/Core/Recipe/RecipeQuickStartTest.php \Drupal\Tests\Core\Recipe\RecipeQuickStartTest::tearDown()
File
-
core/
tests/ Drupal/ Tests/ Core/ Recipe/ RecipeQuickStartTest.php, line 70
Class
- RecipeQuickStartTest
- Tests the quick-start command with recipes.
Namespace
Drupal\Tests\Core\RecipeCode
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::filePreDeleteCallback(...));
}
}
parent::tearDown();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.