class TestSiteInstallTestScript in Drupal 9
Same name and namespace in other branches
- 8 core/tests/Drupal/TestSite/TestSiteInstallTestScript.php \Drupal\TestSite\TestSiteInstallTestScript
Setup file used by TestSiteApplicationTest.
Hierarchy
- class \Drupal\TestSite\TestSiteInstallTestScript implements TestSetupInterface
Expanded class hierarchy of TestSiteInstallTestScript
See also
\Drupal\Tests\Scripts\TestSiteApplicationTest
File
- core/
tests/ Drupal/ TestSite/ TestSiteInstallTestScript.php, line 10
Namespace
Drupal\TestSiteView source
class TestSiteInstallTestScript implements TestSetupInterface {
/**
* {@inheritdoc}
*/
public function setup() {
\Drupal::service('module_installer')
->install([
'test_page_test',
]);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
TestSiteInstallTestScript:: |
public | function |
Run the code to setup the test environment. Overrides TestSetupInterface:: |