function KernelTestBase::assertPostConditions
1 call to KernelTestBase::assertPostConditions()
- KernelTestBaseShutdownTest::assertPostConditions in core/tests/ Drupal/ KernelTests/ KernelTestBaseShutdownTest.php 
1 method overrides KernelTestBase::assertPostConditions()
- KernelTestBaseShutdownTest::assertPostConditions in core/tests/ Drupal/ KernelTests/ KernelTestBaseShutdownTest.php 
File
- 
              core/tests/ Drupal/ KernelTests/ KernelTestBase.php, line 667 
Class
- KernelTestBase
- Base class for functional integration tests.
Namespace
Drupal\KernelTestsCode
protected function assertPostConditions() : void {
  // Execute registered Drupal shutdown functions prior to tearing down.
  // @see _drupal_shutdown_function()
  $callbacks =& drupal_register_shutdown_function();
  while ($callback = array_shift($callbacks)) {
    call_user_func_array($callback['callback'], $callback['arguments']);
  }
  // Shut down the kernel (if bootKernel() was called).
  // @see \Drupal\KernelTests\Core\DrupalKernel\DrupalKernelTest
  if ($this->container) {
    $this->container
      ->get('kernel')
      ->shutdown();
  }
  parent::assertPostConditions();
}Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.
