Location tests more reliable (#12584)

* Location tests more reliable

* perhaps this stayed disabled
This commit is contained in:
Tony Murray
2021-03-04 20:17:32 -06:00
committed by GitHub
parent d6a830e72b
commit 0e05fa31bf
2 changed files with 5 additions and 2 deletions

View File

@@ -60,6 +60,7 @@ class LocationTest extends TestCase
public function testCanSetEncodedLocation()
{
Config::set('geoloc.dns', false);
$device = Device::factory()->make(); /** @var Device $device */
// valid coords
@@ -92,6 +93,7 @@ class LocationTest extends TestCase
public function testCanHandleGivenCoordinates()
{
Config::set('geoloc.dns', false);
$device = Device::factory()->make(); /** @var Device $device */
$location = Location::factory()->withCoordinates()->make();
@@ -136,6 +138,7 @@ class LocationTest extends TestCase
public function testCanSetDnsCoordinate()
{
Config::set('geoloc.dns', true);
$device = Device::factory()->make(); /** @var Device $device */
$location = Location::factory()->withCoordinates()->make();