function KernelTestBaseTest::testBootKernel

Tests boot kernel.

@legacy-covers ::bootKernel

File

core/tests/Drupal/KernelTests/KernelTestBaseTest.php, line 250

Class

KernelTestBaseTest
Tests Drupal\KernelTests\KernelTestBase.

Namespace

Drupal\KernelTests

Code

public function testBootKernel() : void {
  $this->assertNull($this->container
    ->get('request_stack')
    ->getParentRequest(), 'There should only be one request on the stack');
  $this->assertEquals('public', \Drupal::config('system.file')->get('default_scheme'));
}

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