From 2c6af6a93541fa154f80f1798d8522efeb90fbf3 Mon Sep 17 00:00:00 2001 From: Christopher Georg Date: Wed, 21 Feb 2024 13:06:30 +0100 Subject: [PATCH] chore: remove tests that are not needed anymore. Format is fixed to json --- .../AbstractIvoryGoogleMapExtensionTest.php | 87 ------------------- 1 file changed, 87 deletions(-) diff --git a/Tests/DependencyInjection/AbstractIvoryGoogleMapExtensionTest.php b/Tests/DependencyInjection/AbstractIvoryGoogleMapExtensionTest.php index 0a911b52..1766e5e6 100644 --- a/Tests/DependencyInjection/AbstractIvoryGoogleMapExtensionTest.php +++ b/Tests/DependencyInjection/AbstractIvoryGoogleMapExtensionTest.php @@ -258,19 +258,10 @@ public function testDirection() $this->assertSame($this->client, $direction->getClient()); $this->assertSame($this->messageFactory, $direction->getMessageFactory()); $this->assertSame($this->serializer, $direction->getSerializer()); - $this->assertSame(DirectionService::FORMAT_JSON, $direction->getFormat()); $this->assertFalse($direction->hasBusinessAccount()); self::assertTrue($this->container->has('ivory.google_map.serializer.loader')); } - public function testDirectionFormat() - { - $this->loadConfiguration($this->container, 'direction_format'); - $this->container->compile(); - - $this->assertSame(DirectionService::FORMAT_JSON, $this->container->get('ivory.google_map.direction')->getFormat()); - } - public function testDirectionApiKey() { $this->loadConfiguration($this->container, 'direction_api_key'); @@ -330,21 +321,9 @@ public function testDistanceMatrix() $this->assertSame($this->client, $distanceMatrix->getClient()); $this->assertSame($this->messageFactory, $distanceMatrix->getMessageFactory()); $this->assertSame($this->serializer, $distanceMatrix->getSerializer()); - $this->assertSame(DistanceMatrixService::FORMAT_JSON, $distanceMatrix->getFormat()); $this->assertFalse($distanceMatrix->hasBusinessAccount()); } - public function testDistanceMatrixFormat() - { - $this->loadConfiguration($this->container, 'distance_matrix_format'); - $this->container->compile(); - - $this->assertSame( - DistanceMatrixService::FORMAT_JSON, - $this->container->get('ivory.google_map.distance_matrix')->getFormat() - ); - } - public function testDistanceMatrixApiKey() { $this->loadConfiguration($this->container, 'distance_matrix_api_key'); @@ -404,18 +383,9 @@ public function testElevation() $this->assertSame($this->client, $elevation->getClient()); $this->assertSame($this->messageFactory, $elevation->getMessageFactory()); $this->assertSame($this->serializer, $elevation->getSerializer()); - $this->assertSame(ElevationService::FORMAT_JSON, $elevation->getFormat()); $this->assertFalse($elevation->hasBusinessAccount()); } - public function testElevationFormat() - { - $this->loadConfiguration($this->container, 'elevation_format'); - $this->container->compile(); - - $this->assertSame(ElevationService::FORMAT_JSON, $this->container->get('ivory.google_map.elevation')->getFormat()); - } - public function testElevationApiKey() { $this->loadConfiguration($this->container, 'elevation_api_key'); @@ -475,21 +445,9 @@ public function testGeocoder() $this->assertSame($this->client, $geocoder->getClient()); $this->assertSame($this->messageFactory, $geocoder->getMessageFactory()); $this->assertSame($this->serializer, $geocoder->getSerializer()); - $this->assertSame(GeocoderService::FORMAT_JSON, $geocoder->getFormat()); $this->assertFalse($geocoder->hasBusinessAccount()); } - public function testGeocoderFormat() - { - $this->loadConfiguration($this->container, 'geocoder_format'); - $this->container->compile(); - - $this->assertSame( - GeocoderService::FORMAT_JSON, - $this->container->get('ivory.google_map.geocoder')->getFormat() - ); - } - public function testGeocoderApiKey() { $this->loadConfiguration($this->container, 'geocoder_api_key'); @@ -549,21 +507,9 @@ public function testPlaceAutocomplete() $this->assertSame($this->client, $placeAutocomplete->getClient()); $this->assertSame($this->messageFactory, $placeAutocomplete->getMessageFactory()); $this->assertSame($this->serializer, $placeAutocomplete->getSerializer()); - $this->assertSame(PlaceAutocompleteService::FORMAT_JSON, $placeAutocomplete->getFormat()); $this->assertFalse($placeAutocomplete->hasBusinessAccount()); } - public function testPlaceAutocompleteFormat() - { - $this->loadConfiguration($this->container, 'place_autocomplete_format'); - $this->container->compile(); - - $this->assertSame( - PlaceAutocompleteService::FORMAT_JSON, - $this->container->get('ivory.google_map.place_autocomplete')->getFormat() - ); - } - public function testPlaceAutocompleteApiKey() { $this->loadConfiguration($this->container, 'place_autocomplete_api_key'); @@ -623,21 +569,9 @@ public function testPlaceDetail() $this->assertSame($this->client, $placeDetail->getClient()); $this->assertSame($this->messageFactory, $placeDetail->getMessageFactory()); $this->assertSame($this->serializer, $placeDetail->getSerializer()); - $this->assertSame(PlaceDetailService::FORMAT_JSON, $placeDetail->getFormat()); $this->assertFalse($placeDetail->hasBusinessAccount()); } - public function testPlaceDetailFormat() - { - $this->loadConfiguration($this->container, 'place_detail_format'); - $this->container->compile(); - - $this->assertSame( - PlaceDetailService::FORMAT_JSON, - $this->container->get('ivory.google_map.place_detail')->getFormat() - ); - } - public function testPlaceDetailApiKey() { $this->loadConfiguration($this->container, 'place_detail_api_key'); @@ -750,21 +684,9 @@ public function testPlaceSearch() $this->assertSame($this->client, $placeSearch->getClient()); $this->assertSame($this->messageFactory, $placeSearch->getMessageFactory()); $this->assertSame($this->serializer, $placeSearch->getSerializer()); - $this->assertSame(PlaceSearchService::FORMAT_JSON, $placeSearch->getFormat()); $this->assertFalse($placeSearch->hasBusinessAccount()); } - public function testPlaceSearchFormat() - { - $this->loadConfiguration($this->container, 'place_search_format'); - $this->container->compile(); - - $this->assertSame( - PlaceSearchService::FORMAT_JSON, - $this->container->get('ivory.google_map.place_search')->getFormat() - ); - } - public function testPlaceSearchApiKey() { $this->loadConfiguration($this->container, 'place_search_api_key'); @@ -824,18 +746,9 @@ public function testTimeZone() $this->assertSame($this->client, $timeZone->getClient()); $this->assertSame($this->messageFactory, $timeZone->getMessageFactory()); $this->assertSame($this->serializer, $timeZone->getSerializer()); - $this->assertSame(TimeZoneService::FORMAT_JSON, $timeZone->getFormat()); $this->assertFalse($timeZone->hasBusinessAccount()); } - public function testTimeZoneFormat() - { - $this->loadConfiguration($this->container, 'time_zone_format'); - $this->container->compile(); - - $this->assertSame(TimeZoneService::FORMAT_JSON, $this->container->get('ivory.google_map.time_zone')->getFormat()); - } - public function testTimeZoneApiKey() { $this->loadConfiguration($this->container, 'time_zone_api_key');