protected function KernelTestBase::assertPostConditions in Drupal 8
Same name and namespace in other branches
- 9 core/tests/Drupal/KernelTests/KernelTestBase.php \Drupal\KernelTests\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 594
Class
- KernelTestBase
- Base class for functional integration tests.
Namespace
Drupal\KernelTestsCode
protected function assertPostConditions() {
// 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();
}