This repository has been archived on 2025-01-19. You can view files and clone it, but cannot push or open issues or pull requests.
drupalcampbristol/web/core/tests/Drupal/TestSite/TestSetupInterface.php
2018-11-23 12:29:20 +00:00

28 lines
618 B
PHP

<?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();
}