silverstripe-framework/tests/integration/GeoipTest.php

12 lines
280 B
PHP

<?php
class GeoipTest extends SapphireTest {
function testSetDefaultCountry() {
Geoip::set_default_country_code('DE');
Geoip::set_enabled(false);
$this->assertEquals('DE', Geoip::visitor_country());
$this->assertEquals('DE', Geoip::get_default_country_code());
}
}