public function KernelTestBaseTest::testBootEnvironment in Drupal 9
Same name and namespace in other branches
- 8 core/tests/Drupal/KernelTests/KernelTestBaseTest.php \Drupal\KernelTests\KernelTestBaseTest::testBootEnvironment()
@covers ::bootEnvironment
File
- core/
tests/ Drupal/ KernelTests/ KernelTestBaseTest.php, line 34
Class
- KernelTestBaseTest
- @coversDefaultClass \Drupal\KernelTests\KernelTestBase
Namespace
Drupal\KernelTestsCode
public function testBootEnvironment() {
$this
->assertMatchesRegularExpression('/^test\\d{8}$/', $this->databasePrefix);
$this
->assertStringStartsWith('vfs://root/sites/simpletest/', $this->siteDirectory);
$this
->assertEquals([
'root' => [
'sites' => [
'simpletest' => [
substr($this->databasePrefix, 4) => [
'files' => [
'config' => [
'sync' => [],
],
],
],
],
],
],
], vfsStream::inspect(new vfsStreamStructureVisitor())
->getStructure());
}