public function KernelTestBaseShutdownTest::shutdownFunction in Drupal 8
Same name and namespace in other branches
- 9 core/tests/Drupal/KernelTests/KernelTestBaseShutdownTest.php \Drupal\KernelTests\KernelTestBaseShutdownTest::shutdownFunction()
Registers that this shutdown function has been called.
File
- core/
tests/ Drupal/ KernelTests/ KernelTestBaseShutdownTest.php, line 55
Class
- KernelTestBaseShutdownTest
- @coversDefaultClass \Drupal\KernelTests\KernelTestBase
Namespace
Drupal\KernelTestsCode
public function shutdownFunction() {
self::$shutdownCalled[] = 'shutdownFunction';
drupal_register_shutdown_function([
$this,
'shutdownFunction2',
]);
}