Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[FrameworkBundle] WebTestCase KernelBrowser::getContainer null return type#31202
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
[FrameworkBundle] WebTestCase KernelBrowser::getContainer null return type#31202
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Uh oh!
There was an error while loading.Please reload this page.
3d11b16 tob7e5040CompareUh oh!
There was an error while loading.Please reload this page.
b7e5040 to6e010c3CompareUh oh!
There was an error while loading.Please reload this page.
derrabus commentedApr 27, 2019
Wouldn't it make sense to move that deprecation into the kernel? 🤔 |
6e010c3 to4bc8b7aCompareSimperfit commentedApr 29, 2019
PR Updated. |
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
5e143c1 to54428ceCompareSimperfit commentedApr 29, 2019
There are alot of deprecation with this being deprecated directly in the Kernel, I see 2 way of fixing this:
WDYT ? |
ro0NL commentedApr 30, 2019
is there a legit case that relies on a nulled container? We should check before shipping :) in general i think tests should be fixed yes, unless it tests a behavior that becomes irrelevant in 5.0; then it's a legacy test. |
xabbuh commentedApr 30, 2019
The deprecations seem to be triggered by the |
d6e58b3 tobd6c8b0CompareSimperfit commentedMay 12, 2019
Status: Needs Review |
a522f61 to1b67876CompareSimperfit commentedMay 18, 2019
Test fixed ! |
xabbuh left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
with minor comment
Uh oh!
There was an error while loading.Please reload this page.
7a2b34e to50eda4bCompareSimperfit commentedAug 9, 2019
PR Rebased |
50eda4b toe169e1aComparenicolas-grekas commentedSep 27, 2019
PR rebased, ready. |
fabpot commentedSep 27, 2019
Thank you@Simperfit. |
…ner null return type (Simperfit)This PR was merged into the 4.4 branch.Discussion----------[FrameworkBundle] WebTestCase KernelBrowser::getContainer null return type| Q | A| ------------- | ---| Branch? | 4.4| Bug fix? | no| New feature? | no <!-- don't forget to update src/**/CHANGELOG.md files -->| BC breaks? | no <!-- seehttps://symfony.com/bc -->| Deprecations? | yes <!-- don't forget to update UPGRADE-*.md and src/**/CHANGELOG.md files -->| Tests pass? | yes <!-- please add some, will be required by reviewers -->| Fixed tickets |#25920 <!-- #-prefixed issue number(s), if any -->| License | MIT| Doc PR | <!-- required for new features --><!--Write a short README entry for your feature/bugfix here (replace this comment block.)This will help people understand your PR and can be used as a start of the Doc PR.Additionally: - Bug fixes must be submitted against the lowest branch where they apply (lowest branches are regularly merged to upper ones so they get the fixes too). - Features and deprecations must be submitted against the master branch.-->As@stof suggested in the#25920 I started deprecating the behaviour of returning null when the container is non booted / null.If this is not wanted we should close both the PR and the issue ;).Commits-------e169e1a [FrameworkBundle] WebTestCase KernelBrowser::getContainer null return type
…eal one instead (nicolas-grekas)This PR was merged into the 4.4 branch.Discussion----------[FrameworkBundle] Don't reset the test container but the real one instead| Q | A| ------------- | ---| Branch? | 4.4 for features / 3.4 or 4.3 for bug fixes <!-- see below -->| Bug fix? | yes/no| New feature? | yes/no <!-- please update src/**/CHANGELOG.md files -->| Deprecations? | yes/no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->| Tickets | Fix #... <!-- prefix each issue number with "Fix #", if any -->| License | MIT| Doc PR | -After#31202 and#32056, the tearDown method keeps throwing deprecation notices about "Getting the container from a non-booted kernel". The reason is that resetting the test-container calls `$kernel->getContainer()` while the kernel has been shut down.This fixes it and a few other glitches found meanwhile.Commits-------8e16143 [FrameworkBundle] Dont reset the test container but the real one instead
TomasVotruba commentedNov 23, 2019 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Pretty nasty BC break between 4.3 and 4.4, took me 2 hours to figure out 😫 This is the fix if anyone needs it:https://github.com/Symplify/Symplify/pull/1681/files |
Since 5.0 the parent implementation throws an exception anyway making the overwrites obsolete, seesymfony#31202
Since 5.0 the parent implementation throws an exception anyway making the overwrites obsolete, seesymfony#31202
…s (Tobion)This PR was merged into the 5.0 branch.Discussion----------[FrameworkBundle] remove getContainer overwrites in tests| Q | A| ------------- | ---| Branch? | 5.0| Bug fix? | no| New feature? | no <!-- please update src/**/CHANGELOG.md files -->| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->| Tickets || Doc PR |Since 5.0 the parent implementation throws an exception anyway making the overwrites obsolete, see#31202Commits-------5ef9390 remove getContainer overwrites in tests
Since 5.0 the parent implementation throws an exception anyway making the overwrites obsolete, seesymfony/symfony#31202
Since 5.0 the parent implementation throws an exception anyway making the overwrites obsolete, seesymfony/symfony#31202
Since 5.0 the parent implementation throws an exception anyway making the overwrites obsolete, seesymfony#31202
Since 5.0 the parent implementation throws an exception anyway making the overwrites obsolete, seesymfony#31202
Uh oh!
There was an error while loading.Please reload this page.
As@stof suggested in the#25920 I started deprecating the behaviour of returning null when the container is non booted / null.
If this is not wanted we should close both the PR and the issue ;).