function TestRunnerKernel::createFromRequest

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Test/TestRunnerKernel.php \Drupal\Core\Test\TestRunnerKernel::createFromRequest()
  2. 8.9.x core/lib/Drupal/Core/Test/TestRunnerKernel.php \Drupal\Core\Test\TestRunnerKernel::createFromRequest()
  3. 10 core/lib/Drupal/Core/Test/TestRunnerKernel.php \Drupal\Core\Test\TestRunnerKernel::createFromRequest()

Overrides DrupalKernel::createFromRequest

1 call to TestRunnerKernel::createFromRequest()
FunctionalTestSetupTrait::prepareEnvironment in core/lib/Drupal/Core/Test/FunctionalTestSetupTrait.php
Prepares the current environment for running the test.

File

core/lib/Drupal/Core/Test/TestRunnerKernel.php, line 21

Class

TestRunnerKernel
Defines a kernel used for running Functional tests and <a href="/api/drupal/core%21scripts%21run-tests.sh/11.x" title="Script for running tests on DrupalCI." class="local">run-tests.sh</a>.

Namespace

Drupal\Core\Test

Code

public static function createFromRequest(Request $request, $class_loader, $environment = 'test_runner', $allow_dumping = TRUE, $app_root = NULL) {
    return parent::createFromRequest($request, $class_loader, $environment, $allow_dumping, $app_root);
}

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