interface TestPreinstallInterface
Same name in other branches
- 9 core/tests/Drupal/TestSite/TestPreinstallInterface.php \Drupal\TestSite\TestPreinstallInterface
- 8.9.x core/tests/Drupal/TestSite/TestPreinstallInterface.php \Drupal\TestSite\TestPreinstallInterface
- 10 core/tests/Drupal/TestSite/TestPreinstallInterface.php \Drupal\TestSite\TestPreinstallInterface
Allows running code prior to a test site install.
Hierarchy
- interface \Drupal\TestSite\TestPreinstallInterface
Expanded class hierarchy of TestPreinstallInterface
All classes that implement TestPreinstallInterface
See also
\Drupal\TestSite\Commands\TestSiteInstallCommand
1 file declares its use of TestPreinstallInterface
- TestSiteInstallCommand.php in core/
tests/ Drupal/ TestSite/ Commands/ TestSiteInstallCommand.php
File
-
core/
tests/ Drupal/ TestSite/ TestPreinstallInterface.php, line 12
Namespace
Drupal\TestSiteView source
interface TestPreinstallInterface {
/**
* Runs code prior to a test site install.
*
* This method is run after FunctionalTestSetupTrait::prepareEnvironment()
* but before Drupal is installed. As such, there is limited setup of the
* environment and no Drupal API is available.
*
* @param string $db_prefix
* The database prefix.
* @param string $site_directory
* The site directory.
*
* @see \Drupal\TestSite\TestSiteInstallTestScript
*/
public function preinstall($db_prefix, $site_directory);
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overrides |
---|---|---|---|---|
TestPreinstallInterface::preinstall | public | function | Runs code prior to a test site install. | 1 |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.