public function SiteInstallSetupScript::setup in Responsive and off-canvas menu 4.4.x
Same name and namespace in other branches
- 4.1.x tests/src/Nightwatch/SiteInstallSetupScript.php \Drupal\TestSite\SiteInstallSetupScript::setup()
- 4.3.x tests/src/Nightwatch/SiteInstallSetupScript.php \Drupal\TestSite\SiteInstallSetupScript::setup()
Run the code to setup the test environment.
You have access to any API provided by any installed module. For example, to install modules use:
\Drupal::service('module_installer')
->install([
'my_module',
]);
Check out TestSiteInstallTestScript for an example.
Overrides TestSetupInterface::setup
See also
\Drupal\TestSite\TestSiteInstallTestScript
File
- tests/
src/ Nightwatch/ SiteInstallSetupScript.php, line 13
Class
- SiteInstallSetupScript
- Setup file used by responsive_menu module Nightwatch tests.
Namespace
Drupal\TestSiteCode
public function setup() {
\Drupal::service('module_installer')
->install([
'responsive_menu_test',
]);
}