Mercurial > hg > cmmr2012-drupal-site
comparison core/tests/Drupal/TestSite/TestSetupInterface.php @ 4:a9cd425dd02b
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:11:55 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
3:307d7a7fd348 | 4:a9cd425dd02b |
---|---|
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 } |