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
-------
6f4684f618
Set booted flag to false when test kernel is unset
This commit is contained in:
commit
be84687263
@ -45,6 +45,7 @@ abstract class KernelTestCase extends TestCase
|
|||||||
{
|
{
|
||||||
static::ensureKernelShutdown();
|
static::ensureKernelShutdown();
|
||||||
static::$kernel = null;
|
static::$kernel = null;
|
||||||
|
static::$booted = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user