diff options
author | Stefan Giehl <stefan@matomo.org> | 2020-10-05 11:50:52 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-05 11:50:52 +0300 |
commit | afc8b469d3d0121e4e87b54a34d904dfa2904fde (patch) | |
tree | c5b992af0717835695cd1dd4943f0e5fb0beb8f7 /tests/PHPUnit/Unit | |
parent | 9e10a150585522ca30ecdd275007a882a70c6df5 (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.php | 4 |
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() |