class TestSiteApplication in Drupal 9
Same name and namespace in other branches
- 8 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 19
Namespace
Drupal\TestSiteView source
class TestSiteApplication extends Application {
/**
* {@inheritdoc}
*/
protected function getDefaultCommands() {
$default_commands = parent::getDefaultCommands();
$default_commands[] = new TestSiteInstallCommand();
$default_commands[] = new TestSiteTearDownCommand();
$default_commands[] = new TestSiteReleaseLocksCommand();
$default_commands[] = new TestSiteUserLoginCommand();
return $default_commands;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
TestSiteApplication:: |
protected | function |