-
-
Notifications
You must be signed in to change notification settings - Fork 424
[WCM] Deleting save
and remove
methods from repositories
#1328
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
[WCM] Deleting save
and remove
methods from repositories
#1328
Conversation
save
and remove
methods from repositoriessave
and remove
methods from repositories
It seems that the red tests are linked to my PR. However, I want to correct the tests but I am unable them. Locally I still have this error Can you please help me? |
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.
Thanks for taking this on! I just dropped a hint about the failed test
It looks like the other failed test came from |
Finally, the remaining failed test came from When I ran the tests locally, I didn't get this error again. It's strange because after committing and pushing on the repository, the I noticed that this test also failed on the PRs(#1330, #1325). Would you have any suggestions for correcting this test? |
The tests can be sensitive. That's partly by design, but they can be a pain... especially when it comes to different Symfony versions. Here's what I'm thinking: A) Duplicate B) In MakeCrudTest, dynamically choose - sprintf('%s/fixtures/%s', \dirname(__DIR__), 'make-crud/expected/WithCustomRepository.php'),
+ sprintf('%s/fixtures/make-crud/expected/WithCustomRepository%s.php', \dirname(__DIR__), Kernel::VERSION_ID < 60200 ? 'Legacy' : ''), Let me know if that helps :) |
Unfortunately, the tests failed globally (1 test failed when installing symfony/console), I don't know why it compares One thing to note: the last 2 tests failed on the |
…n 2x assertion methods
My code suggestion for checking the Symfony version was slightly wrong - I just pushed the fix for it. Let's see what the tests think now :) |
The tests were successful ! :) @weaverryan Thanks for your help I didn't understand why you replaced |
save
and remove
methods from repositoriessave
and remove
methods from repositories
Even back when Anyway, tests green now! Woo! |
Thanks Maxime! |
This PR was squashed before being merged into the 1.0-dev branch. Discussion ---------- Ignore use statement generator duplicates Follow #1328 (comment) Following weaverryan's idea I've improved `UseStatementGenerator` in this PR to ignore duplicates. Commits ------- 1bfaf30 Ignore use statement generator duplicates
Fix #1327
In this PR I've removed the
save
andremove
methods from the repositories, for the reasons explained here #1327.( The add method has been renamed to save, here #1204 )
Reviews welcome!