Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/PHPUnit/Integration/TrackerTest.php')
-rw-r--r--tests/PHPUnit/Integration/TrackerTest.php10
1 files changed, 3 insertions, 7 deletions
diff --git a/tests/PHPUnit/Integration/TrackerTest.php b/tests/PHPUnit/Integration/TrackerTest.php
index 574aa3312c..94f2feefa0 100644
--- a/tests/PHPUnit/Integration/TrackerTest.php
+++ b/tests/PHPUnit/Integration/TrackerTest.php
@@ -369,7 +369,7 @@ class TrackerTest extends IntegrationTestCase
public function test_archiveInvalidation_differentServerAndWebsiteTimezones()
{
// Server timezone is UTC
- ini_set('date.timezone', 'America/New_York');
+ ini_set('date.timezone', 'UTC');
// Website timezone is New York
$idSite = Fixture::createWebsite('2014-01-01 00:00:00', 0, false, false,
@@ -385,12 +385,8 @@ class TrackerTest extends IntegrationTestCase
$this->request->setCurrentTimestamp(Date::$now);
$this->tracker->trackRequest($this->request);
- $keys = Option::getLike('%report_to_invalidate_2_2019-04-02%');
- $this->assertCount(1, $keys);
- $key = key($keys);
- $this->assertStringEndsWith('report_to_invalidate_2_2019-04-02_' . getmypid(), $key);
- // make sure today archives are also invalidated
- $this->assertEquals([$key => '1'], $keys);
+ // make sure today archives are not invalidated
+ $this->assertEquals([], Option::getLike('report_to_invalidate_2_2019-04-02%'));
}
public function test_TrackingNewVisitOfKnownVisitor()