-
-
Notifications
You must be signed in to change notification settings - Fork 56
chore: unify the tests style (use PHP attributes, descriptive method names, instance-style assertion calls, detailed assertions and custom failure messages) #431
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
Merged
Merged
Changes from 13 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
0799468
chore: migrate tests away from `test_` prefixed method names to moder…
martin-georgiev 69c5e33
no message
martin-georgiev 02ceeb0
no message
martin-georgiev a762c30
no message
martin-georgiev eb0bd59
no message
martin-georgiev b1a47dc
no message
martin-georgiev 4b92c63
no message
martin-georgiev 3dd6f98
no message
martin-georgiev 7ba442d
no message
martin-georgiev 3b30f5c
no message
martin-georgiev 5c32f66
no message
martin-georgiev 7d8683c
no message
martin-georgiev 9bc0756
no message
martin-georgiev 807bf04
no message
martin-georgiev eab9a99
no message
martin-georgiev 037cad8
no message
martin-georgiev e6ba815
no message
martin-georgiev cc2ef81
no message
martin-georgiev 2097278
no message
martin-georgiev dcfa5cc
no message
martin-georgiev File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
💡 Verification agent
🧩 Analysis chain
Verify no lingering references to old JSON field names
Renaming to jsonObject1/jsonObject2 is consistent with the tests. Please ensure no code still references object1/object2 (e.g., DQL or entity property access).
Run:
🏁 Script executed:
Length of output: 159921
Action Required: Update lingering DQL/property references to
jsonObject1/jsonObject2All of the following tests still refer to the old properties
object1andobject2, which will break now that the entity usesjsonObject1andjsonObject2. Please update each occurrence in both Unit and Integration tests to reference the new names:• Unit tests under
tests/Unit/MartinGeorgiev/Doctrine/ORM/Query/AST/Functions/• Integration tests under
tests/Integration/MartinGeorgiev/Doctrine/ORM/Query/AST/Functions/Example snippet changes:
Please sweep all occurrences of:
c0_\.object1/c0_\.object2t\.object1/t\.object2->object1/->object2in DQL stringsand replace with the corresponding
jsonObject1/jsonObject2.🤖 Prompt for AI Agents