comparison 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
comparison
equal deleted inserted replaced
3:307d7a7fd348 4:a9cd425dd02b
1 <?php
2
3 namespace Drupal\TestSite;
4
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;
10
11 /**
12 * Application wrapper for test site commands.
13 *
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.
16 *
17 * @internal
18 */
19 class TestSiteApplication extends Application {
20
21 /**
22 * {@inheritdoc}
23 */
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;
31 }
32
33 }