Skip to content

Commit

Permalink
Fixed Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan Fiscaletti committed Jun 27, 2019
1 parent 63ac5a5 commit 3a5ec23
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/GeoLookupTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ public function testGetLocationForReturnsLocationObject()

public function testGetLocationWithHttpsForReturnsLocationObjectOnInvalidPlan()
{
$geo = new GeoLookup('d0164200acfaa5ad0a154d1a7398bc90', true);
$geo = new GeoLookup('d0164200acfaa5ad0a154d1a7398bc90');

$this->expectException(\Exception::class);
$this->expectExceptionMessage('Error: Access Restricted - Your current Subscription Plan does not support HTTPS Encryption.');

$location = $geo->getLocation('github.com');
$location = $geo->useHttps(true)->getLocation('github.com');

$this->assertInternalType('array', $location);
}
Expand All @@ -39,8 +39,6 @@ public function testGetClientLocationOnUnableToFindClientIp()
$this->expectExceptionMessage('Error: Unable to find client IP address.');

$location = $geo->getClientLocation();

$this->assertInstanceOf(Location::class, $location);
}

public function testGetLocationsBulkRequestReturnsErrorOnMissingAPIPermissions()
Expand Down

0 comments on commit 3a5ec23

Please sign in to comment.