You are here

public function TestPreinstallInterface::preinstall in Drupal 8

Same name and namespace in other branches
  1. 9 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\TestSite

Code

public function preinstall($db_prefix, $site_directory);