Skip to content

Commit

Permalink
Fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
stevebauman committed Feb 11, 2019
1 parent d4366ba commit 52cc907
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/vendor
composer.lock
composer.phar
.DS_Store
1 change: 0 additions & 1 deletion src/Drivers/IpApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ protected function hydrate(Position $position, Fluent $location)
$position->zipCode = $location->zip;
$position->latitude = (string) $location->lat;
$position->longitude = (string) $location->lon;
// $position->metroCode = (string) $location->metro_code;
$position->areaCode = $location->region;

return $position;
Expand Down
4 changes: 2 additions & 2 deletions tests/LocationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
use Illuminate\Support\Fluent;
use Stevebauman\Location\Drivers\MaxMind;
use Stevebauman\Location\Position;
use Stevebauman\Location\Drivers\IpApi;
use Stevebauman\Location\Drivers\IpInfo;
use Stevebauman\Location\Drivers\Driver;
use Stevebauman\Location\Drivers\FreeGeoIp;
use Stevebauman\Location\Drivers\GeoPlugin;
use Stevebauman\Location\Facades\Location;
use Stevebauman\Location\Exceptions\DriverDoesNotExistException;
Expand Down Expand Up @@ -63,7 +63,7 @@ public function test_driver_does_not_exist()

public function test_free_geo_ip()
{
$driver = m::mock(FreeGeoIp::class)->makePartial();
$driver = m::mock(IpApi::class)->makePartial();

$driver
->shouldAllowMockingProtectedMethods()
Expand Down

0 comments on commit 52cc907

Please sign in to comment.