Mercurial > hg > isophonics-drupal-site
view core/tests/Drupal/TestSite/TestSetupInterface.php @ 19:fa3358dc1485 tip
Add ndrum files
author | Chris Cannam |
---|---|
date | Wed, 28 Aug 2019 13:14:47 +0100 |
parents | 129ea1e6d783 |
children |
line wrap: on
line source
<?php namespace Drupal\TestSite; /** * Allows setting up an environment as part of a test site install. * * @see \Drupal\TestSite\Commands\TestSiteInstallCommand */ interface TestSetupInterface { /** * 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: * @code * \Drupal::service('module_installer')->install(['my_module']) * @endcode * * Check out TestSiteInstallTestScript for an example. * * @see \Drupal\TestSite\TestSiteInstallTestScript */ public function setup(); }