MDL-67593 core_iplookup: use MaxMind test database in unit tests
commit2bc8f72dffa8c526dad2587acb8d9b3f138c3c80
authorJake Dallimore <jake@moodle.com>
Tue, 31 Dec 2019 06:38:50 +0000 (31 14:38 +0800)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Wed, 1 Jan 2020 19:52:33 +0000 (1 20:52 +0100)
treea91948f1d693e24904d991a9096b65bab9cb6778
parent4d504d86b7d99e2d5f3b168be52f011ddf4b6fe1
MDL-67593 core_iplookup: use MaxMind test database in unit tests

Instead of downloading a live database (now not available publicly)
use a local test database.
iplookup/tests/fixtures/GeoIP2-City-Test.mmdb [new file with mode: 0644]
iplookup/tests/fixtures/README.txt [new file with mode: 0644]
iplookup/tests/geoip_test.php
lib/maxmind/readme_moodle.txt