annotate core/tests/Drupal/TestSite/TestSiteApplication.php @ 4:a9cd425dd02b

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