Replaced the strict path used in the MaxMind database download test
It was set to /tmp directly instead of using the sys_get_temp_dir() method, leading to failures on systems with a different temp folder location,
This commit is contained in:
parent
66da2c83da
commit
a576060403
|
@ -55,7 +55,7 @@ class WC_Tests_MaxMind_Database extends WC_Unit_Test_Case {
|
||||||
*/
|
*/
|
||||||
public function test_download_database_works() {
|
public function test_download_database_works() {
|
||||||
$database_service = new WC_Integration_MaxMind_Database_Service( '' );
|
$database_service = new WC_Integration_MaxMind_Database_Service( '' );
|
||||||
$expected_database = '/tmp/GeoLite2-Country_20200100/GeoLite2-Country.mmdb';
|
$expected_database = sys_get_temp_dir() . '/GeoLite2-Country_20200100/GeoLite2-Country.mmdb';
|
||||||
|
|
||||||
$result = $database_service->download_database( 'testing_license' );
|
$result = $database_service->download_database( 'testing_license' );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue