class TestSiteInstallTestScript in Drupal 8
Same name and namespace in other branches
- 9 core/tests/Drupal/TestSite/TestSiteInstallTestScript.php \Drupal\TestSite\TestSiteInstallTestScript
- 10 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:: |