function TemplateProjectTestBase::installQuickStart

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 TemplateProjectTestBase::installQuickStart()
TemplateProjectTestBase::createTestProject in core/modules/package_manager/tests/src/Build/TemplateProjectTestBase.php
Creates a test project from a given template and installs Drupal.

File

core/modules/package_manager/tests/src/Build/TemplateProjectTestBase.php, line 186

Class

TemplateProjectTestBase
Base class for tests which create a test site from a core project template.

Namespace

Drupal\Tests\package_manager\Build

Code

public function installQuickStart($profile, $working_dir = NULL) : void {
  parent::installQuickStart("{$profile} --no-ansi", $working_dir ?: $this->webRoot);
  // Allow package_manager to be installed, since it is hidden by default.
  // Always allow test modules to be installed in the UI and, for easier
  // debugging, always display errors in their dubious glory.
  $php = <<<END
\$settings['testing_package_manager'] = TRUE;
\$settings['extension_discovery_scan_tests'] = TRUE;
\$config['system.logging']['error_level'] = 'verbose';
END;
  $this->writeSettings($php);
}

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