function TestPreinstallInterface::preinstall
Same name in other branches
- 9 core/tests/Drupal/TestSite/TestPreinstallInterface.php \Drupal\TestSite\TestPreinstallInterface::preinstall()
- 10 core/tests/Drupal/TestSite/TestPreinstallInterface.php \Drupal\TestSite\TestPreinstallInterface::preinstall()
- 11.x core/tests/Drupal/TestSite/TestPreinstallInterface.php \Drupal\TestSite\TestPreinstallInterface::preinstall()
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.
Parameters
string $db_prefix: The database prefix.
string $site_directory: The site directory.
See also
\Drupal\TestSite\TestSiteInstallTestScript
1 method overrides TestPreinstallInterface::preinstall()
- TestSiteMultilingualInstallTestScript::preinstall in core/
tests/ Drupal/ TestSite/ TestSiteMultilingualInstallTestScript.php - Runs code prior to a test site install.
File
-
core/
tests/ Drupal/ TestSite/ TestPreinstallInterface.php, line 26
Class
- TestPreinstallInterface
- Allows running code prior to a test site install.
Namespace
Drupal\TestSiteCode
public function preinstall($db_prefix, $site_directory);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.