Skip to content

Commit

Permalink
[TASK] Make time conversion related tests use UTC
Browse files Browse the repository at this point in the history
  • Loading branch information
NamelessCoder committed Aug 28, 2015
1 parent 6af20b4 commit 5217688
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/Unit/QueryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ public function getGetterAndSetterTestValues() {
'counter' => array('counter', 'foobar-counter'),
'value' => array('value', 123),
'action' => array('action', 'foobar-action'),
'from' => array('from', '2015-01-01', 1420066800),
'to' => array('to', '2015-01-02', 1420153200),
'from' => array('from', '2015-01-01 UTC', 1420070400),
'to' => array('to', '2015-01-02 UTC', 1420156800),
'count' => array('count', 654),
'token' => array('token', 'foobar-token')
);
Expand Down Expand Up @@ -128,14 +128,14 @@ public function testToQueryString() {
'counter' => 'foobar-counter',
'value' => 123,
'action' => 'foobar-action',
'from' => '2015-01-01',
'to' => '2015-01-02',
'from' => '2015-01-01 UTC',
'to' => '2015-01-02 UTC',
'count' => 321,
'token' => 'foobar-token'
)
);
$this->assertEquals(
'package=foobar-package&counter=foobar-counter&action=foobar-action&count=321&from=1420066800&to=1420153200' .
'package=foobar-package&counter=foobar-counter&action=foobar-action&count=321&from=1420070400&to=1420156800' .
'&value=123&token=foobar-token',
$query->toQueryString()
);
Expand Down

0 comments on commit 5217688

Please sign in to comment.