Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / tests / Drupal / TestSite / TestSiteApplication.php
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 }