Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/YOURLS/YOURLS.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author྅༻ Ǭɀħ ༄༆ཉ <ozh@ozh.org>2022-06-15 12:03:53 +0300
committerGitHub <noreply@github.com>2022-06-15 12:03:53 +0300
commit0d9781f5019d39794709734344093480c97c4a14 (patch)
tree8a3577f0be16f3c886911b74b24dcc615ee5f6fd
parent3b69f2be52fdfa08c54eccdcb7b3cfc55560a851 (diff)
Fix geoip tests with a more confident ipv6 (#3369)
This one is in Japan according to all tools I could check
-rw-r--r--tests/tests/geoip/geoip.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/tests/geoip/geoip.php b/tests/tests/geoip/geoip.php
index bc00cee9..b23ad803 100644
--- a/tests/tests/geoip/geoip.php
+++ b/tests/tests/geoip/geoip.php
@@ -40,7 +40,6 @@ class GeoIP_Tests extends PHPUnit\Framework\TestCase {
*/
public function test_country_images() {
$this->assertIsString(yourls_geo_get_flag('AU')); // something like http://yourls/includes/geo/flags/flag_au.gif
- $this->assertIsString(yourls_geo_get_flag('FR'));
$this->assertIsString(yourls_geo_get_flag('')); // something like http://yourls/includes/geo/flags/flag_.gif
$this->assertIsString(yourls_geo_get_flag('OMGLOL')); // fall back to default ''
}
@@ -59,13 +58,13 @@ class GeoIP_Tests extends PHPUnit\Framework\TestCase {
}
/**
- * Data provider : array of arrays of ( 'ip', 'country code' ) in IPv6 notation
+ * Data provider : array of arrays of ( 'ip', 'country code' ) in IPv6 various notations
*/
public function ipv6_samples() {
return array(
array( '::80.24.24.24', 'ES' ),
array( '2001:4860:0:1001::68', 'US' ),
- array( '2001:67c:3a0:ffff:ffff:ffff:ffff:ffff', 'NL' ),
+ array( '2001:0240:2000:0000:0000:0000:0000:0000', 'JP' ),
array( '::1', 'none' ),
array( 'mynameisozh', 'none' ),
);