diff --git a/tests/Service/DadataGeolocateTest.php b/tests/Service/DadataGeolocateTest.php index 3fa6636..01ce70a 100644 --- a/tests/Service/DadataGeolocateTest.php +++ b/tests/Service/DadataGeolocateTest.php @@ -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); @@ -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); diff --git a/tests/Service/DadataIplocateTest.php b/tests/Service/DadataIplocateTest.php index 7b6f0c0..4d64e78 100644 --- a/tests/Service/DadataIplocateTest.php +++ b/tests/Service/DadataIplocateTest.php @@ -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);