diff options
Diffstat (limited to 'plugins/UserCountry/tests/Integration')
-rw-r--r-- | plugins/UserCountry/tests/Integration/APITest.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/UserCountry/tests/Integration/APITest.php b/plugins/UserCountry/tests/Integration/APITest.php index e9d22b8556..3a15c3875f 100644 --- a/plugins/UserCountry/tests/Integration/APITest.php +++ b/plugins/UserCountry/tests/Integration/APITest.php @@ -6,7 +6,7 @@ * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later */ -namespace Piwik\Plugins\UserCountry\tests; +namespace Piwik\Plugins\UserCountry\tests\Integration; use Piwik\Access; use Piwik\Common; @@ -88,6 +88,9 @@ class APITest extends IntegrationTestCase $_SERVER['REMOTE_ADDR'] = $ipAddressHeader; } + // Default provider will guess the location based on HTTP_ACCEPT_LANGUAGE header + $_SERVER['HTTP_ACCEPT_LANGUAGE'] = 'en_US'; + $location = $this->api->getLocationFromIP($ipAddress); $this->assertEquals($expected, $location); } |