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