diff options
author | Stefan Giehl <stefan@matomo.org> | 2021-07-19 18:12:41 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-19 18:12:41 +0300 |
commit | 385b03640e609da4f8ab0ddbd89efebc5346198a (patch) | |
tree | 260901ec277e2ba51f0c7077810d44ea9722ea57 /tests/PHPUnit/Fixtures | |
parent | 475ea29f69361e8be36940a88ebd4d0f60a6b01f (diff) |
Fix filter in UserCountry.getCountry for Map of Maps (#17779)
* Fix filter in UserCountry.getCountry for Map of Maps
* Adds some tests & fixes other APImethods for multiple period & site request
Diffstat (limited to 'tests/PHPUnit/Fixtures')
-rw-r--r-- | tests/PHPUnit/Fixtures/ManyVisitsWithGeoIP.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/PHPUnit/Fixtures/ManyVisitsWithGeoIP.php b/tests/PHPUnit/Fixtures/ManyVisitsWithGeoIP.php index 953a73aaf3..d5c00ffc27 100644 --- a/tests/PHPUnit/Fixtures/ManyVisitsWithGeoIP.php +++ b/tests/PHPUnit/Fixtures/ManyVisitsWithGeoIP.php @@ -86,15 +86,15 @@ class ManyVisitsWithGeoIP extends Fixture private function setUpWebsitesAndGoals() { - if (!self::siteCreated($idSite = 1)) { - self::createWebsite($this->dateTime, 0, "Site 1"); + if (!self::siteCreated($this->idSite)) { + self::createWebsite($this->dateTime, 0, "Site " . $this->idSite); } - if (!self::goalExists($idSite = 1, $idGoal = 1)) { + if (!self::goalExists($this->idSite, $idGoal = 1)) { $this->idGoal = API::getInstance()->addGoal($this->idSite, 'all', 'url', 'http', 'contains', false, 5); } - if (!self::goalExists($idSite = 1, $idGoal = 2)) { + if (!self::goalExists($this->idSite, $idGoal = 2)) { $this->idGoal2 = API::getInstance()->addGoal($this->idSite, 'two', 'url', 'xxxxxxxxxxxxx', 'contains', false, 5, false, 'twodesc'); } } |