TestSiteApplication.php 970 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. namespace Drupal\TestSite;
  3. use Drupal\TestSite\Commands\TestSiteInstallCommand;
  4. use Drupal\TestSite\Commands\TestSiteReleaseLocksCommand;
  5. use Drupal\TestSite\Commands\TestSiteTearDownCommand;
  6. use Drupal\TestSite\Commands\TestSiteUserLoginCommand;
  7. use Symfony\Component\Console\Application;
  8. /**
  9. * Application wrapper for test site commands.
  10. *
  11. * In order to see what commands are available and how to use them run
  12. * "php core/scripts/test-site.php" from command line and use the help system.
  13. *
  14. * @internal
  15. */
  16. class TestSiteApplication extends Application {
  17. /**
  18. * {@inheritdoc}
  19. */
  20. protected function getDefaultCommands() {
  21. $default_commands = parent::getDefaultCommands();
  22. $default_commands[] = new TestSiteInstallCommand();
  23. $default_commands[] = new TestSiteTearDownCommand();
  24. $default_commands[] = new TestSiteReleaseLocksCommand();
  25. $default_commands[] = new TestSiteUserLoginCommand();
  26. return $default_commands;
  27. }
  28. }