function TestSiteApplicationTest::setUp
Same name in other branches
- 8.9.x core/tests/Drupal/Tests/Scripts/TestSiteApplicationTest.php \Drupal\Tests\Scripts\TestSiteApplicationTest::setUp()
- 10 core/tests/Drupal/Tests/Scripts/TestSiteApplicationTest.php \Drupal\Tests\Scripts\TestSiteApplicationTest::setUp()
- 11.x core/tests/Drupal/Tests/Scripts/TestSiteApplicationTest.php \Drupal\Tests\Scripts\TestSiteApplicationTest::setUp()
- 11.x core/tests/Drupal/KernelTests/Scripts/TestSiteApplicationTest.php \Drupal\KernelTests\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\ScriptsCode
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);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.