class TestSiteApplication

Same name in other branches
  1. 8.9.x core/tests/Drupal/TestSite/TestSiteApplication.php \Drupal\TestSite\TestSiteApplication
  2. 10 core/tests/Drupal/TestSite/TestSiteApplication.php \Drupal\TestSite\TestSiteApplication
  3. 11.x 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() {
        $default_commands = parent::getDefaultCommands();
        $default_commands[] = new TestSiteInstallCommand();
        $default_commands[] = new TestSiteTearDownCommand();
        $default_commands[] = new TestSiteReleaseLocksCommand();
        $default_commands[] = new TestSiteUserLoginCommand();
        return $default_commands;
    }

}

Members

Title Sort descending Modifiers Object type Summary
TestSiteApplication::getDefaultCommands protected function

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.