function TemplateProjectTestBase::installQuickStart

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);
    // 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->writeSettings($php);
}

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