You are here

class TestSiteApplication in Drupal 10

Same name and namespace in other branches
  1. 8 core/tests/Drupal/TestSite/TestSiteApplication.php \Drupal\TestSite\TestSiteApplication
  2. 9 core/tests/Drupal/TestSite/TestSiteApplication.php \Drupal\TestSite\TestSiteApplication

Application wrapper for test site commands.

In order to see what commands are available and how to use them run "php core/scripts/test-site.php" from command line and use the help system.

@internal

Hierarchy

Expanded class hierarchy of TestSiteApplication

1 file declares its use of TestSiteApplication
test-site.php in core/scripts/test-site.php
A command line application to install Drupal for tests.

File

core/tests/Drupal/TestSite/TestSiteApplication.php, line 19

Namespace

Drupal\TestSite
View source
class TestSiteApplication extends Application {

  /**
   * {@inheritdoc}
   */
  protected function getDefaultCommands() : array {
    $default_commands = parent::getDefaultCommands();
    $default_commands[] = new TestSiteInstallCommand();
    $default_commands[] = new TestSiteTearDownCommand();
    $default_commands[] = new TestSiteReleaseLocksCommand();
    $default_commands[] = new TestSiteUserLoginCommand();
    return $default_commands;
  }

}

Members