-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[FrameworkBundle] [SecurityBundle] Rename internal WebTestCase to avoid confusion #32617
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
Conversation
FrameworkBundle had 2 classes called WebTestCase, one of which is only meant for internal tests. To avoid confusion the internal class has been renamed to AbstractWebTestCase 'See symfony#32577
This change follows the instructions in the issue, however, I will say it feels wierd that the |
Shouldn't this change target 3.4? |
Wasn't sure, can gladly open a new PR. |
@@ -14,7 +14,7 @@ | |||
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase as BaseWebTestCase; | |||
use Symfony\Component\Filesystem\Filesystem; | |||
|
|||
class WebTestCase extends BaseWebTestCase | |||
class AbstractWebTestCase extends BaseWebTestCase |
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.
👍 for abstract class
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.
Done.
So, if I change this to target the 3.4 branch, the patch will not cleanly apply to versions after, as some functional tests were only added in later versions. How should I proceed? |
@janvt We can either handle that in follow-up PRs or someone who merges branches up can fix those cases while merging. |
So, should I just create one PR for each branch ( |
Also just saw, the same is the case in the |
SecurityBundle had 2 classes called WebTestCase, one of which is only meant for internal tests. To avoid confusion the internal class has been renamed to AbstractWebTestCase and made abstract. See symfony#32577
I opened 2 PRs against the |
…stCase to avoid confusion (janvt) This PR was squashed before being merged into the 3.4 branch (closes #32625). Discussion ---------- [FrameworkBundle] [SecurityBundle] Rename internal WebTestCase to avoid confusion FrameworkBundle & SecurityBundle each had 2 classes called WebTestCase, one of which is only meant for internal tests. To avoid confusion the internal class has been renamed to AbstractWebTestCase and made abstract. | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | no | BC breaks? | no (or, yes, but internal class) | Deprecations? | no | Tests pass? | yes | Fixed tickets | #32577 | License | MIT This PR is to ease integration, as not all test classes are present in all currently maintained branches. See #32617 Commits ------- 775d970 [FrameworkBundle] [SecurityBundle] Rename internal WebTestCase to avoid confusion
…stCase to avoid confusion (janvt) This PR was squashed before being merged into the 3.4 branch (closes #32625). Discussion ---------- [FrameworkBundle] [SecurityBundle] Rename internal WebTestCase to avoid confusion FrameworkBundle & SecurityBundle each had 2 classes called WebTestCase, one of which is only meant for internal tests. To avoid confusion the internal class has been renamed to AbstractWebTestCase and made abstract. | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | no | BC breaks? | no (or, yes, but internal class) | Deprecations? | no | Tests pass? | yes | Fixed tickets | #32577 | License | MIT This PR is to ease integration, as not all test classes are present in all currently maintained branches. See symfony/symfony#32617 Commits ------- 775d970927 [FrameworkBundle] [SecurityBundle] Rename internal WebTestCase to avoid confusion
…stCase to avoid confusion (janvt) This PR was squashed before being merged into the 4.2 branch (closes #32626). Discussion ---------- [FrameworkBundle] [SecurityBundle] Rename internal WebTestCase to avoid confusion FrameworkBundle & SecurityBundle each had 2 classes called WebTestCase, one of which is only meant for internal tests. To avoid confusion the internal class has been renamed to AbstractWebTestCase and made abstract. | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | no | BC breaks? | no (or, yes, but internal class) | Deprecations? | no | Tests pass? | yes | Fixed tickets | #32577 | License | MIT This PR is to ease integration, as not all test classes are present in all currently maintained branches. This PR should patch relatively well onto 4.* branches. See #32617 Commits ------- 01aaece [FrameworkBundle] [SecurityBundle] Rename internal WebTestCase to avoid confusion
FrameworkBundle & SecurityBundle had 2 classes called WebTestCase,
one of which is only meant for internal tests. To avoid confusion the internal
classes have been renamed to AbstractWebTestCase and made abstract.