overrideConfigValues( [ 'CookieWarningGeoIPServiceURL' => null ] ); $geoLocation = $this->getServiceContainer()->getService( 'GeoLocation' ); $this->assertInstanceOf( NoopGeoLocation::class, $geoLocation ); } /** * @covers \CookieWarning\HttpGeoLocation */ public function testGeoLocationWithServiceURL() { $this->overrideConfigValues( [ 'CookieWarningGeoIPServiceURL' => 'http://localhost/' ] ); $geoLocation = $this->getServiceContainer()->getService( 'GeoLocation' ); $this->assertInstanceOf( HttpGeoLocation::class, $geoLocation ); } }