function DrupalKernelRequestStackTest::checkErrorHandlerOnTearDown

Same name and namespace in other branches
  1. 11.x core/tests/Drupal/KernelTests/Core/DrupalKernel/DrupalKernelRequestStackTest.php \Drupal\KernelTests\Core\DrupalKernel\DrupalKernelRequestStackTest::checkErrorHandlerOnTearDown()

Checks the test error handler after test execution.

Attributes

#[After]

Overrides DrupalTestCaseTrait::checkErrorHandlerOnTearDown

File

core/tests/Drupal/KernelTests/Core/DrupalKernel/DrupalKernelRequestStackTest.php, line 152

Class

DrupalKernelRequestStackTest
Tests the usage of the request stack as part of request processing.

Namespace

Drupal\KernelTests\Core\DrupalKernel

Code

public function checkErrorHandlerOnTearDown() : void {
  // This test calls DrupalKernel::terminate() which removes the error
  // handler invalidating this check.
}

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