function DrupalKernelTest::testUnBootedTerminate

Same name and namespace in other branches
  1. 10 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 146

Class

DrupalKernelTest
@coversDefaultClass <a href="/api/drupal/core%21lib%21Drupal%21Core%21DrupalKernel.php/class/DrupalKernel/11.x" title="The DrupalKernel class is the core of Drupal itself." class="local">\Drupal\Core\DrupalKernel</a> @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.