Skip to content

Commit

Permalink
Merge pull request #13964 from eileenmcnaughton/test
Browse files Browse the repository at this point in the history
Improve data when known time-dependent-failing test fails
  • Loading branch information
eileenmcnaughton authored Apr 5, 2019
2 parents 0a4a07b + 350f28f commit 353f9bd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/phpunit/CRM/Report/FormTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,7 @@ public function fromToData() {
public function testGetFromTo($expectedFrom, $expectedTo, $relative, $from, $to) {
$obj = new CRM_Report_Form();
list($calculatedFrom, $calculatedTo) = $obj->getFromTo($relative, $from, $to);
$this->assertEquals($expectedFrom, $calculatedFrom);
$this->assertEquals($expectedTo, $calculatedTo);
$this->assertEquals([$expectedFrom, $expectedTo], [$calculatedFrom, $calculatedTo], "fail on data set [ $relative , $from , $to ]. Local php time is " . date('Y-m-d H:i:s') . ' and mysql time is ' . CRM_Core_DAO::singleValueQuery('SELECT NOW()'));
}

}

0 comments on commit 353f9bd

Please sign in to comment.