Skip to content

Commit

Permalink
bug #35323 [FrameworkBundle] Set booted flag to false when test kerne…
Browse files Browse the repository at this point in the history
…l 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
  • Loading branch information
nicolas-grekas committed Jan 14, 2020
2 parents 642c7ff + 6f4684f commit be84687
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Symfony/Bundle/FrameworkBundle/Test/KernelTestCase.php
Expand Up @@ -45,6 +45,7 @@ private function doTearDown()
{
static::ensureKernelShutdown();
static::$kernel = null;
static::$booted = false;
}

/**
Expand Down

0 comments on commit be84687

Please sign in to comment.