Skip testGetFromTo on date transition
authoreileen <emcnaughton@wikimedia.org>
Fri, 7 Jun 2019 00:37:24 +0000 (12:37 +1200)
committereileen <emcnaughton@wikimedia.org>
Fri, 7 Jun 2019 00:37:24 +0000 (12:37 +1200)
commit659e3f525ec5b11b1473317ae6bb36c82be10dfa
treebad0980e72a993c9e15e4de1e4bcebf4226792e2
parent4741274a9552d061292dbcc5f65b3e5016d46eef
Skip testGetFromTo on date transition

This avoids fails when the expectations were calculated right at the end of a day but then are compared with the new day's values.

Results in this case look like

CRM_Report_FormTest::testGetFromTo with data set #1 ('20190606000000', '20190606235959', 'this.day', '', '')
fail on data set [ this.day ,  ,  ]. Local php time is 2019-06-07 00:00:13 and mysql time is 2019-06-07 00:00:13
Failed asserting that two arrays are equal.
--- Expected
+++ Actual
@@ @@
 Array (
-    0 => '20190606000000'
-    1 => '20190606235959'
+    0 => '20190607000000'
+    1 => '20190607235959'
tests/phpunit/CRM/Report/FormTest.php