class TestSiteInstallTestScript

Same name in other branches
  1. 8.9.x core/tests/Drupal/TestSite/TestSiteInstallTestScript.php \Drupal\TestSite\TestSiteInstallTestScript
  2. 10 core/tests/Drupal/TestSite/TestSiteInstallTestScript.php \Drupal\TestSite\TestSiteInstallTestScript
  3. 11.x core/tests/Drupal/TestSite/TestSiteInstallTestScript.php \Drupal\TestSite\TestSiteInstallTestScript

Setup file used by TestSiteApplicationTest.

Hierarchy

Expanded class hierarchy of TestSiteInstallTestScript

See also

\Drupal\Tests\Scripts\TestSiteApplicationTest

File

core/tests/Drupal/TestSite/TestSiteInstallTestScript.php, line 10

Namespace

Drupal\TestSite
View source
class TestSiteInstallTestScript implements TestSetupInterface {
    
    /**
     * {@inheritdoc}
     */
    public function setup() {
        \Drupal::service('module_installer')->install([
            'test_page_test',
        ]);
    }

}

Members

Title Sort descending Modifiers Object type Summary Overriden Title
TestSiteInstallTestScript::setup public function Run the code to setup the test environment. Overrides TestSetupInterface::setup

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