From 35a37a1eae642c1ca123815b20018541acdef77b Mon Sep 17 00:00:00 2001 From: Bradley Date: Thu, 26 Sep 2024 10:19:07 +0100 Subject: [PATCH] Improve method names --- tests/Service/GeocoderTest.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/Service/GeocoderTest.php b/tests/Service/GeocoderTest.php index a1c713b..f8729e7 100644 --- a/tests/Service/GeocoderTest.php +++ b/tests/Service/GeocoderTest.php @@ -30,7 +30,7 @@ final class GeocoderTest extends KernelTestCase $this->geocoder = $kernel->getContainer()->get('pcm_geocode.geocoder'); } - public function testGeocodePostcodeThrowsOnEmptyInput(): void + public function testGeocodeThrowsOnEmptyInput(): void { sleep(1); $this->expectException(ApiErrorException::class); @@ -39,7 +39,7 @@ final class GeocoderTest extends KernelTestCase $this->geocoder->geocode($entity); } - public function testGeocodePostcodeThrowsOnInvalidPostcode(): void + public function testGeocodeThrowsOnInvalidPostcode(): void { sleep(1); $this->expectException(NoResultsFoundException::class); @@ -48,7 +48,7 @@ final class GeocoderTest extends KernelTestCase $this->geocoder->geocode($entity); } - public function testGeocodePostcodeReturnsGeoCoordinates(): GeoCoordinates + public function testGeocodeReturnsGeoCoordinates(): GeoCoordinates { sleep(1); $entity = $this->createEntity(self::POSTCODE); @@ -59,7 +59,7 @@ final class GeocoderTest extends KernelTestCase } /** - * @depends testGeocodePostcodeReturnsGeoCoordinates + * @depends testGeocodeReturnsGeoCoordinates */ public function testCoordinatesAreSet(GeoCoordinates $geoCoordinates): void {