Skip to content

Commit 2c1dbb8

Browse files
authored
Create client before booting the Kernel (#22)
Since Symfony 5 booting the Kernel before creating the client ist not allowed anymore: https://github.com/symfony/framework-bundle/blob/ec8ac3e40fe2e6eb0984acd8e07d69a6655a7a5f/Test/WebTestCase.php#L40
1 parent 8d554c2 commit 2c1dbb8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/Functional/ShortcodeTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ protected function setUp(): void
2929
throw new PHPUnit_Framework_IncompleteTestError('Albeit being a '.__CLASS__.', '.static::class.' does not define a shortcode to test.');
3030
}
3131

32-
static::bootKernel();
3332
$this->client = static::createClient();
33+
static::bootKernel();
3434
}
3535

3636
/**

0 commit comments

Comments
 (0)