function DrupalKernelTest::testUnBootedTerminate

Same name and namespace in other branches
  1. 11.x core/tests/Drupal/Tests/Core/DrupalKernel/DrupalKernelTest.php \Drupal\Tests\Core\DrupalKernel\DrupalKernelTest::testUnBootedTerminate()
  2. 10 core/tests/Drupal/Tests/Core/DrupalKernel/DrupalKernelTest.php \Drupal\Tests\Core\DrupalKernel\DrupalKernelTest::testUnBootedTerminate()

Tests un booted terminate.

@legacy-covers ::terminate

Attributes

#[RunInSeparateProcess]

File

core/tests/Drupal/Tests/Core/DrupalKernel/DrupalKernelTest.php, line 150

Class

DrupalKernelTest
Tests Drupal\Core\DrupalKernel.

Namespace

Drupal\Tests\Core\DrupalKernel

Code

public function testUnBootedTerminate() : void {
  $kernel = new DrupalKernel('test', new ClassLoader());
  $kernel->terminate(new Request(), new Response());
  $this->assertTrue(TRUE, "\\Drupal\\Core\\DrupalKernel::terminate() called without error on kernel which has not booted");
}

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