function TestSiteInstallTestScript::setup
Same name in other branches
- 9 core/tests/Drupal/TestSite/TestSiteInstallTestScript.php \Drupal\TestSite\TestSiteInstallTestScript::setup()
- 8.9.x core/tests/Drupal/TestSite/TestSiteInstallTestScript.php \Drupal\TestSite\TestSiteInstallTestScript::setup()
- 11.x core/tests/Drupal/TestSite/TestSiteInstallTestScript.php \Drupal\TestSite\TestSiteInstallTestScript::setup()
Overrides TestSetupInterface::setup
File
-
core/
tests/ Drupal/ TestSite/ TestSiteInstallTestScript.php, line 17
Class
- TestSiteInstallTestScript
- Setup file used by TestSiteApplicationTest.
Namespace
Drupal\TestSiteCode
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.