Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/merchant_beta' into SUPEE-7227
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey Nosov committed Nov 3, 2015
2 parents 0897100 + a3b54bd commit 4034577
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -255,8 +255,11 @@ public function testPrepareSummary($useAggregatedData, $mainTable, $isFilter, $g
*/
public function testGetDateRangeFirstPart($range, $customStart, $customEnd, $expectedInterval)
{
$timeZoneToReturn = date_default_timezone_get();
date_default_timezone_set('UTC');
$result = $this->collection->getDateRange($range, $customStart, $customEnd);
$interval = $result['to']->diff($result['from']);
date_default_timezone_set($timeZoneToReturn);
$intervalResult = $interval->format('%y %m %d %h:%i:%s');
$this->assertEquals($expectedInterval, $intervalResult);
}
Expand Down

0 comments on commit 4034577

Please sign in to comment.