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:
authorStefan Giehl <stefan@matomo.org>2020-10-05 11:50:52 +0300
committerGitHub <noreply@github.com>2020-10-05 11:50:52 +0300
commitafc8b469d3d0121e4e87b54a34d904dfa2904fde (patch)
treec5b992af0717835695cd1dd4943f0e5fb0beb8f7 /tests/PHPUnit/Unit
parent9e10a150585522ca30ecdd275007a882a70c6df5 (diff)
Fix failing tests (#16523)
* fix tracker request tests * rebuilt piwik.js * fix JSLint error Co-authored-by: sgiehl <sgiehl@users.noreply.github.com>
Diffstat (limited to 'tests/PHPUnit/Unit')
-rw-r--r--tests/PHPUnit/Unit/Tracker/RequestTest.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/PHPUnit/Unit/Tracker/RequestTest.php b/tests/PHPUnit/Unit/Tracker/RequestTest.php
index 4a0aeaaed4..6cf5bebaf9 100644
--- a/tests/PHPUnit/Unit/Tracker/RequestTest.php
+++ b/tests/PHPUnit/Unit/Tracker/RequestTest.php
@@ -12,6 +12,7 @@ use Piwik\Cookie;
use Piwik\Exception\InvalidRequestParameterException;
use Matomo\Network\IPUtils;
use Piwik\Tests\Framework\TestCase\UnitTestCase;
+use Piwik\Tracker\Cache;
use Piwik\Tracker\Request;
use Piwik\Tracker\TrackerConfig;
@@ -34,6 +35,9 @@ class RequestTest extends UnitTestCase
$this->time = 1416795617;
$this->request = $this->buildRequest(array('idsite' => '1'));
+
+ // set an empty cache to avoid the cache will be built (which requires database)
+ Cache::setCacheGeneral([]);
}
public function test_getCurrentTimestamp_ShouldReturnTheSetTimestamp_IfNoCustomValueGiven()