You are here

protected function TestBase::beforePrepareEnvironment in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/simpletest/src/TestBase.php \Drupal\simpletest\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 1188
Contains \Drupal\simpletest\TestBase.

Class

TestBase
Base class for Drupal tests.

Namespace

Drupal\simpletest

Code

protected function beforePrepareEnvironment() {
}