Commit af3c0bce authored by Guy Thouret's avatar Guy Thouret

(fix) ActiveUsersQueryBuilder Spec test is only successful with a specific base time - #590

1 merge request!285Reward Factors for User Activity
Pipeline #82719088 passed with stages
in 11 minutes and 37 seconds
......@@ -14,8 +14,9 @@ class ActiveUsersQueryBuilderSpec extends ObjectBehavior
public function it_should_produce_a_valid_query()
{
$from = strtotime('midnight -2 days');
$to = strtotime('midnight');
$referenceTime = 1568246400;
$from = strtotime('midnight -2 days', $referenceTime);
$to = strtotime('midnight', $referenceTime);
$this->setPartitions(10)->setPage(2)->setFrom($from)->setTo($to)->query()->shouldBe($this->exampleQuery());
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment