You are here

public function TestSiteInstallTestScript::setup in Drupal 10

Same name and namespace in other branches
  1. 8 core/tests/Drupal/TestSite/TestSiteInstallTestScript.php \Drupal\TestSite\TestSiteInstallTestScript::setup()
  2. 9 core/tests/Drupal/TestSite/TestSiteInstallTestScript.php \Drupal\TestSite\TestSiteInstallTestScript::setup()

File

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

Class

TestSiteInstallTestScript
Setup file used by TestSiteApplicationTest.

Namespace

Drupal\TestSite

Code

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