function DrupalKernelTest::testUnBootedTerminate

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

@covers ::terminate @runInSeparateProcess

File

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

Class

DrupalKernelTest
@coversDefaultClass \Drupal\Core\DrupalKernel @group 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.