You are here

public function ShutdownFunctionTest::shutdownOne in Drupal 9

Tests shutdown functions by registering another shutdown function.

File

core/tests/Drupal/KernelTests/Core/Bootstrap/ShutdownFunctionTest.php, line 52

Class

ShutdownFunctionTest
Tests.

Namespace

Drupal\KernelTests\Core\Bootstrap

Code

public function shutdownOne() {
  drupal_register_shutdown_function([
    $this,
    'shutdownTwo',
  ]);
  $this->shutDownOneCalled = TRUE;
}