Improve method names

This commit is contained in:
2024-09-26 10:19:07 +01:00
parent 9a7e6b01cb
commit 35a37a1eae

View File

@@ -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
{