Skip to content

Fix using Cake\I18n\Date and DateTime in insert dry-run #2359

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 1 commit into from
May 25, 2025

Conversation

MasterOdin
Copy link
Member

@MasterOdin MasterOdin commented May 25, 2025

While #2348 added support for Cake\I18n\Date and Cake\I18n\DateTime in inserts, we didn't add support for it when using the --dry-run flag, and so using the flag with those types would produce an exception (ame as the one shown in #2357).

This PR fixes that bug.

PR also reworks the tests added in #2358 to use data providers to reduce repetition. I also added a test case for Literal values which was missing.

@MasterOdin MasterOdin merged commit 524ebde into 0.x May 25, 2025
12 checks passed
@MasterOdin MasterOdin deleted the fix-date-dry-run branch May 25, 2025 16:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants