You are here

protected function KernelTestBase::isTestInIsolation in Drupal 8

Returns whether the current test method is running in a separate process.

Note that KernelTestBase will run in a separate process by default.

Return value

bool

Deprecated

in drupal:8.4.0 and is removed from drupal:9.0.0. KernelTestBase tests are always run in isolated processes.

See also

\Drupal\KernelTests\KernelTestBase::$runTestInSeparateProcess

https://github.com/sebastianbergmann/phpunit/pull/1350

File

core/tests/Drupal/KernelTests/KernelTestBase.php, line 1014

Class

KernelTestBase
Base class for functional integration tests.

Namespace

Drupal\KernelTests

Code

protected function isTestInIsolation() {
  @trigger_error(__CLASS__ . '::' . __FUNCTION__ . '() is deprecated in Drupal 8.4.x, for removal before the Drupal 9.0.0 release. KernelTestBase tests are always run in isolated processes.', E_USER_DEPRECATED);
  return function_exists('__phpunit_run_isolated_test');
}