public function TestSiteInstallCommand::setup in Drupal 9
Same name and namespace in other branches
- 8 core/tests/Drupal/TestSite/Commands/TestSiteInstallCommand.php \Drupal\TestSite\Commands\TestSiteInstallCommand::setup()
Creates a test drupal installation.
Parameters
string $profile: (optional) The installation profile to use.
string $setup_class: (optional) Setup class. A PHP class to setup configuration used by the test.
string $langcode: (optional) The language to install the site in.
1 call to TestSiteInstallCommand::setup()
- TestSiteInstallCommand::execute in core/
tests/ Drupal/ TestSite/ Commands/ TestSiteInstallCommand.php
File
- core/
tests/ Drupal/ TestSite/ Commands/ TestSiteInstallCommand.php, line 183
Class
- TestSiteInstallCommand
- Command to create a test Drupal site.
Namespace
Drupal\TestSite\CommandsCode
public function setup($profile = 'testing', $setup_class = NULL, $langcode = 'en') {
$this->profile = $profile;
$this->langcode = $langcode;
$this
->setupBaseUrl();
$this
->prepareEnvironment();
$this
->executePreinstallClass($setup_class);
$this
->installDrupal();
$this
->executeSetupClass($setup_class);
}