class TestSiteApplication
Same name in other branches
- 9 core/tests/Drupal/TestSite/TestSiteApplication.php \Drupal\TestSite\TestSiteApplication
- 8.9.x core/tests/Drupal/TestSite/TestSiteApplication.php \Drupal\TestSite\TestSiteApplication
- 11.x core/tests/Drupal/TestSite/TestSiteApplication.php \Drupal\TestSite\TestSiteApplication
Application wrapper for test site commands.
In order to see what commands are available and how to use them run "php core/scripts/test-site.php" from command line and use the help system.
@internal
Hierarchy
- class \Drupal\TestSite\TestSiteApplication extends \Symfony\Component\Console\Application
Expanded class hierarchy of TestSiteApplication
1 file declares its use of TestSiteApplication
- test-site.php in core/
scripts/ test-site.php - A command line application to install Drupal for tests.
File
-
core/
tests/ Drupal/ TestSite/ TestSiteApplication.php, line 21
Namespace
Drupal\TestSiteView source
class TestSiteApplication extends Application {
/**
* {@inheritdoc}
*/
protected function getDefaultCommands() : array {
$default_commands = parent::getDefaultCommands();
$default_commands[] = new TestSiteInstallCommand();
$default_commands[] = new TestSiteTearDownCommand();
$default_commands[] = new TestSiteReleaseLocksCommand();
$default_commands[] = new TestSiteUserLoginCommand();
return $default_commands;
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
TestSiteApplication::getDefaultCommands | protected | function |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.