function TestSiteApplicationTest::setUp

Same name in other branches
  1. 9 core/tests/Drupal/Tests/Scripts/TestSiteApplicationTest.php \Drupal\Tests\Scripts\TestSiteApplicationTest::setUp()
  2. 10 core/tests/Drupal/Tests/Scripts/TestSiteApplicationTest.php \Drupal\Tests\Scripts\TestSiteApplicationTest::setUp()
  3. 11.x 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() {
    parent::setUp();
    $php_executable_finder = new PhpExecutableFinder();
    $this->php = $php_executable_finder->find();
    $this->root = dirname(dirname(substr(__DIR__, 0, -strlen(__NAMESPACE__))));
}

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