-
Notifications
You must be signed in to change notification settings - Fork 27
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
EZP-30712: Fixed reverseTransform for midnight value #301
Conversation
Hi @SerheyDolgushev, thanks for opening the PR! Could you change base and rebase to 2.5? |
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.
@SerheyDolgushev is it possible to cover this with some minimal unit tests? I'd like to know what empty-ish value occurs for midnight w/o debugging it myself (good input data for test case) ;)
Seems we're missing tests for TimeValueTransformer
so please add minimal coverage of just testTransform
with a few inputs. Please see how it's done in \EzSystems\RepositoryForms\Tests\FieldType\DataTransformer\DateIntervalToArrayTransformerTest
.
Besides as mentioned above, this is a bug so should go to branch 2.5
.
CS nitpick:
fc3899e
to
8a8f1ad
Compare
Requested CS changes and rebase against 2.5 is done.
|
This is still unresolved:
I'm sorry, but I don't have time to reproduce this myself and decide if the fix is correct based on behavior. This is why tests are helpful. |
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.
@SerheyDolgushev Almost good, one final remark from my side:
tests/RepositoryForms/FieldType/DataTransformer/TimeValueTransformerTest.php
Outdated
Show resolved
Hide resolved
tests/RepositoryForms/FieldType/DataTransformer/TimeValueTransformerTest.php
Show resolved
Hide resolved
@alongosz could you merge it up? |
@lserwatka done. Thank you @SerheyDolgushev 🎉 |
JIRA: https://jira.ez.no/browse/EZP-30712
Can't set a time to be midnight without this fix