function BuildTestBase::setUp
Same name in other branches
- 9 core/tests/Drupal/BuildTests/Framework/BuildTestBase.php \Drupal\BuildTests\Framework\BuildTestBase::setUp()
- 8.9.x core/tests/Drupal/BuildTests/Framework/BuildTestBase.php \Drupal\BuildTests\Framework\BuildTestBase::setUp()
- 11.x core/tests/Drupal/BuildTests/Framework/BuildTestBase.php \Drupal\BuildTests\Framework\BuildTestBase::setUp()
3 calls to BuildTestBase::setUp()
- ComposerHookTest::setUp in core/
tests/ Drupal/ Tests/ Composer/ Plugin/ Scaffold/ Functional/ ComposerHookTest.php - GenerateThemeTest::setUp in core/
tests/ Drupal/ Tests/ Core/ Command/ GenerateThemeTest.php - GenerateThemeTest::setUp in core/
tests/ Drupal/ BuildTests/ Command/ GenerateThemeTest.php
3 methods override BuildTestBase::setUp()
- ComposerHookTest::setUp in core/
tests/ Drupal/ Tests/ Composer/ Plugin/ Scaffold/ Functional/ ComposerHookTest.php - GenerateThemeTest::setUp in core/
tests/ Drupal/ Tests/ Core/ Command/ GenerateThemeTest.php - GenerateThemeTest::setUp in core/
tests/ Drupal/ BuildTests/ Command/ GenerateThemeTest.php
File
-
core/
tests/ Drupal/ BuildTests/ Framework/ BuildTestBase.php, line 157
Class
- BuildTestBase
- Provides a workspace to test build processes.
Namespace
Drupal\BuildTests\FrameworkCode
protected function setUp() : void {
parent::setUp();
$this->phpFinder = new PhpExecutableFinder();
// Set up the workspace directory.
// @todo Glean working directory from env vars, etc.
$fs = new SymfonyFilesystem();
$this->workspaceDir = $fs->tempnam(DrupalFilesystem::getOsTemporaryDirectory(), '/build_workspace_' . md5($this->name() . microtime(TRUE)));
$fs->remove($this->workspaceDir);
$fs->mkdir($this->workspaceDir);
$this->initMink();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.