3 namespace Drupal\TestSite;
6 * Allows setting up an environment as part of a test site install.
8 * @see \Drupal\TestSite\Commands\TestSiteInstallCommand
10 interface TestSetupInterface {
13 * Run the code to setup the test environment.
15 * You have access to any API provided by any installed module. For example,
16 * to install modules use:
18 * \Drupal::service('module_installer')->install(['my_module'])
21 * Check out TestSiteInstallTestScript for an example.
23 * @see \Drupal\TestSite\TestSiteInstallTestScript
25 public function setup();