Skip to content

Commit

Permalink
chore: remove tests that are not needed anymore. Format is fixed to json
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris8934 committed Feb 21, 2024
1 parent a785546 commit 2c6af6a
Showing 1 changed file with 0 additions and 87 deletions.
87 changes: 0 additions & 87 deletions Tests/DependencyInjection/AbstractIvoryGoogleMapExtensionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down Expand Up @@ -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');
Expand Down Expand Up @@ -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');
Expand Down Expand Up @@ -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');
Expand Down Expand Up @@ -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');
Expand Down Expand Up @@ -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');
Expand Down Expand Up @@ -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');
Expand Down Expand Up @@ -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');
Expand Down

0 comments on commit 2c6af6a

Please sign in to comment.