Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[FrameworkBundle] Set booted flag to false when test kernel is unset #35323

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 14, 2020
Merged

[FrameworkBundle] Set booted flag to false when test kernel is unset #35323

merged 1 commit into from
Jan 14, 2020

Conversation

thiagocordeiro
Copy link
Contributor

@thiagocordeiro thiagocordeiro commented Jan 13, 2020

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

@nicolas-grekas nicolas-grekas added this to the 4.4 milestone Jan 14, 2020
@nicolas-grekas nicolas-grekas changed the title Set booted flag to false when test kernel is unset [FrameworkBundle] Set booted flag to false when test kernel is unset Jan 14, 2020
@nicolas-grekas nicolas-grekas changed the base branch from 5.0 to 4.4 January 14, 2020 16:26
@nicolas-grekas
Copy link
Member

Thank you @thiagocordeiro.

nicolas-grekas added a commit that referenced this pull request Jan 14, 2020
…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
@nicolas-grekas nicolas-grekas merged commit 6f4684f into symfony:4.4 Jan 14, 2020
@thiagocordeiro thiagocordeiro deleted the patch-2 branch January 17, 2020 09:55
This was referenced Jan 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants