function TestBase::beforePrepareEnvironment

Act on global state information before the environment is altered for a test.

Allows e.g. KernelTestBase to prime system/extension info from the parent site (and inject it into the test environment so as to improve performance).

1 call to TestBase::beforePrepareEnvironment()
TestBase::prepareEnvironment in core/modules/simpletest/src/TestBase.php
Prepares the current environment for running the test.
1 method overrides TestBase::beforePrepareEnvironment()
KernelTestBase::beforePrepareEnvironment in core/modules/simpletest/src/KernelTestBase.php
Act on global state information before the environment is altered for a test.

File

core/modules/simpletest/src/TestBase.php, line 1060

Class

TestBase
Base class for Drupal tests.

Namespace

Drupal\simpletest

Code

protected function beforePrepareEnvironment() {
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.