8000 bug #35323 [FrameworkBundle] Set booted flag to false when test kerne… · symfony/symfony@be84687 · GitHub
[go: up one dir, main page]

Skip to content

Commit be84687

Browse files
bug #35323 [FrameworkBundle] Set booted flag to false when test kernel is unset (thiagocordeiro)
This PR was submitted for the 5.0 branch but it was merged into the 4.4 branch instead. Discussion ---------- [FrameworkBundle] Set booted flag to false when test kernel is unset | Q | A | ------------- | --- | Branch? | 5.0 | Bug fix? | yes | New feature? | no | Deprecations? | no | License | MIT When `KernelTestCase::$kernel` is set to `null` `KernelTestCase::$booted` is not reseted and recreating the client is not possible because it relies on `booted` flag Commits ------- 6f4684f Set booted flag to false when test kernel is unset
2 parents 642c7ff + 6f4684f commit be84687

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Symfony/Bundle/FrameworkBundle/Test/KernelTestCase.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ private function doTearDown()
4545
{
4646
static::ensureKernelShutdown();
4747
static::$kernel = null;
48+
static::$booted = false;
4849
}
4950

5051
/**

0 commit comments

Comments
 (0)
0