-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Mailer][Translation] Remove some static
occurrences that may cause unstable tests
#49431
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
[Mailer][Translation] Remove some static
occurrences that may cause unstable tests
#49431
Conversation
54b6b57
to
e8b83e5
Compare
static
occurrences that may cause unstable testsstatic
occurrences that may cause unstable tests
e8b83e5
to
872abc6
Compare
static
occurrences that may cause unstable testsstatic
occurrences that may cause unstable tests
@alexandre-daubois Can you have a look at the failing tests? |
0653bc7
to
ea342f8
Compare
@fabpot I fixed tests by adding |
For your information, we never backport pull requests. |
Right! This one's a bit special as this was a request from Nicolas to target 6.3 before backporting it. I'll do the appropriate updates if this needs to be changed 🙂 |
ea342f8
to
a20b219
Compare
… may cause unstable tests
a20b219
to
2ca9cf8
Compare
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.
Thank you @alexandre-daubois. |
Thank you for the changes! 🙏 |
…hat may cause unstable tests (alexandre-daubois) This PR was merged into the 6.3 branch. Discussion ---------- [Mailer][Translation] Remove some `static` occurrences that may cause unstable tests | Q | A | ------------- | --- | Branch? | 6.3 | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | _NA_ | License | MIT | Doc PR | _NA_ I had a little tchat with `@nicolas`-grekas who warned me that a few of my late edits on static data providers are a bit dangerous. Indeed, some helper methods were using static properties, which could lead to some leaks between test cases, and/or unstable tests. Helper classes doing so, found in `Translation` and `Mailer`, have been reverted to non-static ones. Data-providers are of course still statics and have been adapted to not use those methods. The targeted branch is 6.3 and this is intended, as requested by Nicolas. If you need any help during the backport of these edits, I'll be happy to help again! ℹ️ A lot of notifier bridges has been introduced in 6.3 and their data providers weren't updated. I also bundled this change in the PR, which should fix 6.3 pipeline as well. Finally, I updated `SmsapiTransportFactoryTest::missingRequiredOptionProvider`. As the `from` option has been made optional, the only dataset provided failed. Commits ------- 2ca9cf8 [Mailer][Translation][Notifier] Remove some `static` occurrences that may cause unstable tests
…hat may cause unstable tests (alexandre-daubois) This PR was merged into the 6.3 branch. Discussion ---------- [Mailer][Translation] Remove some `static` occurrences that may cause unstable tests | Q | A | ------------- | --- | Branch? | 6.3 | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | _NA_ | License | MIT | Doc PR | _NA_ I had a little tchat with `@nicolas`-grekas who warned me that a few of my late edits on static data providers are a bit dangerous. Indeed, some helper methods were using static properties, which could lead to some leaks between test cases, and/or unstable tests. Helper classes doing so, found in `Translation` and `Mailer`, have been reverted to non-static ones. Data-providers are of course still statics and have been adapted to not use those methods. The targeted branch is 6.3 and this is intended, as requested by Nicolas. If you need any help during the backport of these edits, I'll be happy to help again! ℹ️ A lot of notifier bridges has been introduced in 6.3 and their data providers weren't updated. I also bundled this change in the PR, which should fix 6.3 pipeline as well. Finally, I updated `SmsapiTransportFactoryTest::missingRequiredOptionProvider`. As the `from` option has been made optional, the only dataset provided failed. Commits ------- 2ca9cf8 [Mailer][Translation][Notifier] Remove some `static` occurrences that may cause unstable tests
* 5.4: minor #49431 [Mailer][Translation] Remove some `static` occurrences that may cause unstable tests (alexandre-daubois) [Workflow] remove new lines from workflow metadata Fix phpdocs in HttpClient, HttpFoundation, HttpKernel, Intl components [WebProfilerBundle] Render original (not encoded) email headers
* 6.2: minor #49431 [Mailer][Translation] Remove some `static` occurrences that may cause unstable tests (alexandre-daubois) minor #49431 [Mailer][Translation] Remove some `static` occurrences that may cause unstable tests (alexandre-daubois) [Clock] fix url in README.md [Workflow] remove new lines from workflow metadata Fix phpdocs in HttpClient, HttpFoundation, HttpKernel, Intl components [WebProfilerBundle] Render original (not encoded) email headers improve deprecation message [Console] fix clear of section with question
I had a little tchat with @nicolas-grekas who warned me that a few of my late edits on static data providers are a bit dangerous. Indeed, some helper methods were using static properties, which could lead to some leaks between test cases, and/or unstable tests.
Helper classes doing so, found in
Translation
andMailer
, have been reverted to non-static ones. Data-providers are of course still statics and have been adapted to not use those methods.The targeted branch is 6.3 and this is intended, as requested by Nicolas. If you need any help during the backport of these edits, I'll be happy to help again!
ℹ️ A lot of notifier bridges has been introduced in 6.3 and their data providers weren't updated. I also bundled this change in the PR, which should fix 6.3 pipeline as well.
Finally, I updated
SmsapiTransportFactoryTest::missingRequiredOptionProvider
. As thefrom
option has been made optional, the only dataset provided failed.