function RecipeQuickStartTest::setUp

Same name in other branches
  1. 11.x core/tests/Drupal/Tests/Core/Recipe/RecipeQuickStartTest.php \Drupal\Tests\Core\Recipe\RecipeQuickStartTest::setUp()

File

core/tests/Drupal/Tests/Core/Recipe/RecipeQuickStartTest.php, line 55

Class

RecipeQuickStartTest
Tests the quick-start command with recipes.

Namespace

Drupal\Tests\Core\Recipe

Code

protected function setUp() : void {
    parent::setUp();
    $php_executable_finder = new PhpExecutableFinder();
    $this->php = (string) $php_executable_finder->find();
    $this->root = dirname(substr(__DIR__, 0, -strlen(__NAMESPACE__)), 2);
    if (!is_writable("{$this->root}/sites/simpletest")) {
        $this->markTestSkipped('This test requires a writable sites/simpletest directory');
    }
    // Get a lock and a valid site path.
    $this->testDb = new TestDatabase();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.