You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On the last day of the month, these unit tests fail:
There were 5 failures:
1) Date_Functions_Tests::test_get_report_dates_correct_this_month_at_the_end_of_the_month_utc
Failed asserting that 4 matches expected '5'.
/tmp/P9X9ToBK3N62cYONreoCoz1Ol4ydT6EF/tests/tests-date-functions.php:137
2) Date_Functions_Tests::test_get_report_dates_correct_this_month_at_the_end_of_the_month_nz
Failed asserting that 3 matches expected '4'.
/tmp/P9X9ToBK3N62cYONreoCoz1Ol4ydT6EF/tests/tests-date-functions.php:153
3) Date_Functions_Tests::test_get_report_dates_correct_this_month_at_the_beginning_of_the_month_utc
Failed asserting that 4 matches expected '5'.
/tmp/P9X9ToBK3N62cYONreoCoz1Ol4ydT6EF/tests/tests-date-functions.php:183
4) Date_Functions_Tests::test_get_report_dates_correct_this_month_at_the_beginning_of_the_month_pdt
Failed asserting that 4 matches expected '5'.
/tmp/P9X9ToBK3N62cYONreoCoz1Ol4ydT6EF/tests/tests-date-functions.php:200
5) Date_Functions_Tests::test_get_report_dates_correct_this_moment_utc
Failed asserting that 4 matches expected '5'.
/tmp/P9X9ToBK3N62cYONreoCoz1Ol4ydT6EF/tests/tests-date-functions.php:218
Steps to reproduce the behavior
Run unit tests on the last day of the month.
Information (if a specific version is affected):
PHP Version: all of the ones we test
EDD Version (or branch): release/3.0
WordPress Version: all of the ones we test
Any other relevant information:
Per Ashley:
I did find one bug, I think, which is that they pass time zones into edd_get_report_dates(), but ultimately that timezone never makes it into the function that actually builds the dates.
But there is likely more wrong than that. Since the tests work the rest of the month, filing this as a non-urgent issue but something we would like to figure out eventually.
The text was updated successfully, but these errors were encountered:
Bug Report
Expected behavior
I expect unit tests to work every day.
Actual behavior
On the last day of the month, these unit tests fail:
Steps to reproduce the behavior
Information (if a specific version is affected):
PHP Version: all of the ones we test
EDD Version (or branch): release/3.0
WordPress Version: all of the ones we test
Any other relevant information:
Per Ashley:
But there is likely more wrong than that. Since the tests work the rest of the month, filing this as a non-urgent issue but something we would like to figure out eventually.
The text was updated successfully, but these errors were encountered: