Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / tests / Drupal / TestSite / TestSetupInterface.php
1 <?php
2
3 namespace Drupal\TestSite;
4
5 /**
6  * Allows setting up an environment as part of a test site install.
7  *
8  * @see \Drupal\TestSite\Commands\TestSiteInstallCommand
9  */
10 interface TestSetupInterface {
11
12   /**
13    * Run the code to setup the test environment.
14    *
15    * You have access to any API provided by any installed module. For example,
16    * to install modules use:
17    * @code
18    * \Drupal::service('module_installer')->install(['my_module'])
19    * @endcode
20    *
21    * Check out TestSiteInstallTestScript for an example.
22    *
23    * @see \Drupal\TestSite\TestSiteInstallTestScript
24    */
25   public function setup();
26
27 }