public function SiteInstallSetupScript::setup in Sharethis block 8
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 15
Class
- SiteInstallSetupScript
- Setup file used by responsive_menu module Nightwatch tests.
Namespace
Drupal\sharethis_blockCode
public function setup() {
\Drupal::service('module_installer')
->install([
'sharethis_block_test',
]);
}