diff options
Diffstat (limited to 'tests/PHPUnit/Fixtures/ManySitesImportedLogs.php')
-rw-r--r-- | tests/PHPUnit/Fixtures/ManySitesImportedLogs.php | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/tests/PHPUnit/Fixtures/ManySitesImportedLogs.php b/tests/PHPUnit/Fixtures/ManySitesImportedLogs.php index 8dea041717..0a9bf260de 100644 --- a/tests/PHPUnit/Fixtures/ManySitesImportedLogs.php +++ b/tests/PHPUnit/Fixtures/ManySitesImportedLogs.php @@ -7,9 +7,9 @@ */ namespace Piwik\Tests\Fixtures; +use Piwik\Plugins\GeoIp2\LocationProvider\GeoIp2; use Piwik\Plugins\Goals\API as APIGoals; use Piwik\Plugins\SegmentEditor\API as APISegmentEditor; -use Piwik\Plugins\UserCountry\LocationProvider\GeoIp; use Piwik\Plugins\UserCountry\LocationProvider; use Piwik\Tests\Framework\Fixture; @@ -35,11 +35,10 @@ class ManySitesImportedLogs extends Fixture public function setUp() { $this->setUpWebsitesAndGoals(); - self::downloadGeoIpDbs(); LocationProvider::$providers = null; - GeoIp::$geoIPDatabaseDir = 'tests/lib/geoip-files'; - LocationProvider::setCurrentProvider('geoip_php'); + GeoIp2::$geoIPDatabaseDir = 'tests/lib/geoip-files'; + LocationProvider::setCurrentProvider('geoip2php'); self::createSuperUser(); @@ -50,7 +49,7 @@ class ManySitesImportedLogs extends Fixture public function tearDown() { LocationProvider::$providers = null; - GeoIp::$geoIPDatabaseDir = 'tests/lib/geoip-files'; + GeoIp2::$geoIPDatabaseDir = 'tests/lib/geoip-files'; ManyVisitsWithGeoIP::unsetLocationProvider(); } |