-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Upgrading several libraries to support Symfony 7 #14810
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
7ef35fd
to
0a246af
Compare
…ame() when expecting " By using AssertSameBoolNullToSpecificMethodRector
8cc6f64
to
c5b1163
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.
Copilot reviewed 79 out of 99 changed files in this pull request and generated no comments.
Files not reviewed (20)
- app/bundles/ApiBundle/Tests/EventListener/ApiSubscriberTest.php: Language not supported
- app/bundles/ApiBundle/Tests/Form/Type/ClientTypeTest.php: Language not supported
- app/bundles/AssetBundle/Tests/Model/AssetModelTest.php: Language not supported
- app/bundles/CampaignBundle/Tests/Executioner/Dispatcher/ActionDispatcherTest.php: Language not supported
- app/bundles/CampaignBundle/Tests/Executioner/Dispatcher/ConditionDispatcherTest.php: Language not supported
- app/bundles/CampaignBundle/Tests/Executioner/Dispatcher/LegacyEventDispatcherTest.php: Language not supported
- app/bundles/CampaignBundle/Tests/Executioner/EventExecutionerTest.php: Language not supported
- app/bundles/CampaignBundle/Tests/Executioner/KickoffExecutionerTest.php: Language not supported
- app/bundles/CampaignBundle/Tests/Executioner/ScheduledExecutionerTest.php: Language not supported
- app/bundles/CampaignBundle/Tests/Executioner/Scheduler/EventSchedulerTest.php: Language not supported
- app/bundles/CampaignBundle/Tests/Helper/NotificationHelperTest.php: Language not supported
- app/bundles/CampaignBundle/Tests/Membership/MembershipBuilderTest.php: Language not supported
- app/bundles/CampaignBundle/Tests/Service/CampaignAuditServiceTest.php: Language not supported
- app/bundles/CategoryBundle/Tests/Model/ContactActionModelTest.php: Language not supported
- app/bundles/ChannelBundle/Tests/Model/ChannelActionModelTest.php: Language not supported
- app/bundles/ChannelBundle/Tests/Model/FrequencyActionModelTest.php: Language not supported
- app/bundles/CoreBundle/Tests/EventListener/DashboardSubscriberTest.php: Language not supported
- app/bundles/CoreBundle/Tests/Unit/EventListener/CommonStatsSubscriberTest.php: Language not supported
- app/bundles/CoreBundle/Tests/Unit/Form/Type/ContentPreviewSettingsTypeTest.php: Language not supported
- app/bundles/CoreBundle/Tests/Unit/Form/Type/DynamicContentFilterEntryFiltersTypeTest.php: Language not supported
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## 7.x #14810 +/- ##
============================================
+ Coverage 65.06% 65.59% +0.52%
- Complexity 34873 34908 +35
============================================
Files 2294 2296 +2
Lines 103999 140433 +36434
============================================
+ Hits 67666 92114 +24448
- Misses 36333 48319 +11986 🚀 New features to boost your workflow:
|
@escopecz damn, i'm on the upgrade to phpunit 10, using my simple library: https://github.com/biozshock/phpunit-consecutive . Only phpstan is left to fix to release a PR :) |
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.
Looks good 👍 PR removes outdated test methods, making the tests clearer and easier to debug.
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.
The code changes look good to me. 👍
Description
Codeception is one of the libraries we'll have to update to get to Symfony 7. See
I run this:
composer update codeception/* --dev -W
And then:
Full list of dependency upgrades:
As this have updated also PHPUNIT then PHPSTAN started complaining about deprecated method. I found a Rector rule to refactor that. I created this Rector config just for tests because the tests are excluded from normal Rector config.
This helped with replacing the deprecated method. However, it also broke a lot of unit tests, so I had to manually fix them. That's the majority of changes in this PR>
📋 Steps to test this PR:
Most of the changes are in the unit tests, so no production code was changed.