3 namespace Drupal\TestSite;
5 use Drupal\TestSite\Commands\TestSiteInstallCommand;
6 use Drupal\TestSite\Commands\TestSiteReleaseLocksCommand;
7 use Drupal\TestSite\Commands\TestSiteTearDownCommand;
8 use Drupal\TestSite\Commands\TestSiteUserLoginCommand;
9 use Symfony\Component\Console\Application;
12 * Application wrapper for test site commands.
14 * In order to see what commands are available and how to use them run
15 * "php core/scripts/test-site.php" from command line and use the help system.
19 class TestSiteApplication extends Application {
24 protected function getDefaultCommands() {
25 $default_commands = parent::getDefaultCommands();
26 $default_commands[] = new TestSiteInstallCommand();
27 $default_commands[] = new TestSiteTearDownCommand();
28 $default_commands[] = new TestSiteReleaseLocksCommand();
29 $default_commands[] = new TestSiteUserLoginCommand();
30 return $default_commands;