public function UpdateTestBase::installQuickStart in Automatic Updates 8.2
Install a Drupal site using the quick start feature.
Parameters
string $profile: Drupal profile to install.
string $working_dir: (optional) A working directory relative to the workspace, within which to execute the command. Defaults to the workspace directory.
Overrides QuickStartTestBase::installQuickStart
1 call to UpdateTestBase::installQuickStart()
- CoreUpdateTest::createTestSite in tests/
src/ Build/ CoreUpdateTest.php - Uses our already-installed dependencies to build a test site to update.
File
- tests/
src/ Build/ UpdateTestBase.php, line 128
Class
- UpdateTestBase
- Base class for tests that perform in-place updates.
Namespace
Drupal\Tests\automatic_updates\BuildCode
public function installQuickStart($profile, $working_dir = NULL) {
parent::installQuickStart($profile, $working_dir ?: $this->webRoot);
// Always allow test modules to be installed in the UI and, for easier
// debugging, always display errors in their dubious glory.
$php = <<<END
\$settings['extension_discovery_scan_tests'] = TRUE;
\$config['system.logging']['error_level'] = 'verbose';
END;
$this
->addSettings($php, $this
->getWebRoot());
}