Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Velhron committed Jul 9, 2020
1 parent 2075a0d commit add8361
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/Service/DadataGeolocateTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ protected function createService(string $mockFilepath): DadataGeolocate

public function testGeolocateAddress(): void
{
$service = $this->createGeolocateService(__DIR__.'/../mocks/Geolocate/address.json');
$service = $this->createService(__DIR__.'/../mocks/Geolocate/address.json');
$result = $service->geolocateAddress(55.878, 37.653);

$this->assertEquals('г Москва, ул Сухонская, д 11', $result[0]->value);
Expand All @@ -24,7 +24,7 @@ public function testGeolocateAddress(): void

public function testGeolocatePostalUnit(): void
{
$service = $this->createGeolocateService(__DIR__.'/../mocks/Geolocate/postalUnit.json');
$service = $this->createService(__DIR__.'/../mocks/Geolocate/postalUnit.json');
$result = $service->geolocatePostalUnit(55.878, 37.653, ['radius_meters' => 1000]);

$this->assertEquals('127642', $result[0]->postalCode);
Expand Down
2 changes: 1 addition & 1 deletion tests/Service/DadataIplocateTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ protected function createService(string $mockFilepath): DadataIplocate

public function testIplocateAddress(): void
{
$service = $this->createIplocateService(__DIR__.'/../mocks/Iplocate/address.json');
$service = $this->createService(__DIR__.'/../mocks/Iplocate/address.json');
$result = $service->iplocateAddress('46.226.227.20');

$this->assertEquals('г Белгород', $result->value);
Expand Down

0 comments on commit add8361

Please sign in to comment.