Skip to content
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

Unit test for custom date parsing #14988

Merged
merged 1 commit into from Aug 13, 2019
Merged

Conversation

eileenmcnaughton
Copy link
Contributor

Overview

Unit test for #14986
along with some code comments in the test about issues I hit doing what I thought was the right fix

Before

Test not included in fix

After

Test included

Technical Details

  • Comments about issues I hit copied here for visibility

    // @todo I feel like we should work towards this actually parsing $params here -
    // & dropping formatting but
    // per [REF][Import] add formatted parameter to formatInput #14986 for now $formatted is parsing
    // The issue I hit was that when I tried to extend to checking they were correctly imported
    // I was not actually sure what correct behaviour was for what dates were accepted since
    // it seems to ignore the latter in favour of the former - which seems wrong.

Comments

@lucianov88 FYI

@civibot
Copy link

civibot bot commented Aug 8, 2019

(Standard links)

@seamuslee001
Copy link
Contributor

Unit test for civicrm#14986
along with some code comments in the test about issues I hit doing what I thought was the right fix
- copied here for visibility

    // @todo I feel like we should work towards this actually parsing $params here -
    // & dropping formatting but
    // per civicrm#14986 for now $formatted is parsing
    // The issue I hit was that when I tried to extend to checking they were correctly imported
    // I was not actually sure what correct behaviour was for what dates were accepted since
    // it seems to ignore the latter in favour of the former - which seems wrong.
@eileenmcnaughton
Copy link
Contributor Author

fixed

@eileenmcnaughton
Copy link
Contributor Author

@seamuslee001 wanna merge this - I think the fix is already merged

@seamuslee001
Copy link
Contributor

Only affects tests, only real checker then is Jenkins and he seems ok with it merging

@seamuslee001 seamuslee001 merged commit b4cad3d into civicrm:master Aug 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants