function TestSiteMultilingualInstallTestScript::setup

Same name in other branches
  1. 9 core/tests/Drupal/TestSite/TestSiteMultilingualInstallTestScript.php \Drupal\TestSite\TestSiteMultilingualInstallTestScript::setup()
  2. 10 core/tests/Drupal/TestSite/TestSiteMultilingualInstallTestScript.php \Drupal\TestSite\TestSiteMultilingualInstallTestScript::setup()
  3. 11.x core/tests/Drupal/TestSite/TestSiteMultilingualInstallTestScript.php \Drupal\TestSite\TestSiteMultilingualInstallTestScript::setup()

Overrides TestSetupInterface::setup

File

core/tests/Drupal/TestSite/TestSiteMultilingualInstallTestScript.php, line 24

Class

TestSiteMultilingualInstallTestScript
Setup file used by TestSiteApplicationTest.

Namespace

Drupal\TestSite

Code

public function setup() {
    \Drupal::service('module_installer')->install([
        'test_page_test',
    ]);
}

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