Unit test for custom date parsing
authoreileen <emcnaughton@wikimedia.org>
Thu, 8 Aug 2019 00:50:03 +0000 (12:50 +1200)
committereileen <emcnaughton@wikimedia.org>
Thu, 8 Aug 2019 01:29:21 +0000 (13:29 +1200)
commit35aca6d6278e328a923b1d8a3bd40cae02ac6c10
treeb6e6e9f585e7534044e2efa44824967c6a996722
parent086bd98e209edc0c0afcf9bb64cebb096c392a1f
Unit test for custom date parsing

Unit test for https://github.com/civicrm/civicrm-core/pull/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 https://github.com/civicrm/civicrm-core/pull/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.
tests/phpunit/CRM/Contribute/Import/Parser/ContributionTest.php
tests/phpunit/CRMTraits/Custom/CustomDataTrait.php