You are here

protected function TestSiteApplicationTest::setUp in Drupal 9

Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/Scripts/TestSiteApplicationTest.php \Drupal\Tests\Scripts\TestSiteApplicationTest::setUp()

Overrides UnitTestCase::setUp

File

core/tests/Drupal/Tests/Scripts/TestSiteApplicationTest.php, line 41

Class

TestSiteApplicationTest
Tests core/scripts/test-site.php.

Namespace

Drupal\Tests\Scripts

Code

protected function setUp() : void {
  parent::setUp();
  $php_executable_finder = new PhpExecutableFinder();
  $this->php = $php_executable_finder
    ->find();
  $this->root = dirname(substr(__DIR__, 0, -strlen(__NAMESPACE__)), 2);
}