interface TestPreinstallInterface in Drupal 10
Same name and namespace in other branches
- 8 core/tests/Drupal/TestSite/TestPreinstallInterface.php \Drupal\TestSite\TestPreinstallInterface
- 9 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 10
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);
}