From 7e29a2d8a01ed9d0baa18e690b27f6e7e12ccc0f Mon Sep 17 00:00:00 2001 From: Christopher Georg Date: Wed, 21 Feb 2024 13:34:27 +0100 Subject: [PATCH] chore: remove tests for serializer --- .../AbstractIvoryGoogleMapExtensionTest.php | 21 ++++++------------- 1 file changed, 6 insertions(+), 15 deletions(-) diff --git a/Tests/DependencyInjection/AbstractIvoryGoogleMapExtensionTest.php b/Tests/DependencyInjection/AbstractIvoryGoogleMapExtensionTest.php index 1766e5e6..967a6434 100644 --- a/Tests/DependencyInjection/AbstractIvoryGoogleMapExtensionTest.php +++ b/Tests/DependencyInjection/AbstractIvoryGoogleMapExtensionTest.php @@ -64,11 +64,6 @@ abstract class AbstractIvoryGoogleMapExtensionTest extends TestCase */ private $messageFactory; - /** - * @var SerializerInterface|MockObject - */ - private $serializer; - /** * {@inheritdoc} */ @@ -81,7 +76,6 @@ protected function setUp(): void $this->container->setParameter('locale', $this->locale = 'en'); $this->container->set('httplug.client', $this->client = $this->createClientMock()); $this->container->set('httplug.message_factory', $this->messageFactory = $this->createMessageFactoryMock()); - $this->container->set('ivory.serializer', $this->serializer = $this->createSerializerMock()); $this->container->registerExtension($extension = new IvoryGoogleMapExtension()); $this->container->loadFromExtension($extension->getAlias()); (new IvoryGoogleMapBundle())->build($this->container); @@ -247,6 +241,9 @@ public function testStaticMapBusinessAccountInvalid() $this->container->compile(); } + /** + * @throws \Exception + */ public function testDirection() { $this->loadConfiguration($this->container, 'direction'); @@ -257,9 +254,10 @@ public function testDirection() $this->assertInstanceOf(DirectionService::class, $direction); $this->assertSame($this->client, $direction->getClient()); $this->assertSame($this->messageFactory, $direction->getMessageFactory()); - $this->assertSame($this->serializer, $direction->getSerializer()); $this->assertFalse($direction->hasBusinessAccount()); - self::assertTrue($this->container->has('ivory.google_map.serializer.loader')); + + # TODO Check + #self::assertTrue($this->container->has('ivory.google_map.serializer.loader')); } public function testDirectionApiKey() @@ -320,7 +318,6 @@ public function testDistanceMatrix() $this->assertInstanceOf(DistanceMatrixService::class, $distanceMatrix); $this->assertSame($this->client, $distanceMatrix->getClient()); $this->assertSame($this->messageFactory, $distanceMatrix->getMessageFactory()); - $this->assertSame($this->serializer, $distanceMatrix->getSerializer()); $this->assertFalse($distanceMatrix->hasBusinessAccount()); } @@ -382,7 +379,6 @@ public function testElevation() $this->assertInstanceOf(ElevationService::class, $elevation); $this->assertSame($this->client, $elevation->getClient()); $this->assertSame($this->messageFactory, $elevation->getMessageFactory()); - $this->assertSame($this->serializer, $elevation->getSerializer()); $this->assertFalse($elevation->hasBusinessAccount()); } @@ -444,7 +440,6 @@ public function testGeocoder() $this->assertInstanceOf(GeocoderService::class, $geocoder); $this->assertSame($this->client, $geocoder->getClient()); $this->assertSame($this->messageFactory, $geocoder->getMessageFactory()); - $this->assertSame($this->serializer, $geocoder->getSerializer()); $this->assertFalse($geocoder->hasBusinessAccount()); } @@ -506,7 +501,6 @@ public function testPlaceAutocomplete() $this->assertInstanceOf(PlaceAutocompleteService::class, $placeAutocomplete); $this->assertSame($this->client, $placeAutocomplete->getClient()); $this->assertSame($this->messageFactory, $placeAutocomplete->getMessageFactory()); - $this->assertSame($this->serializer, $placeAutocomplete->getSerializer()); $this->assertFalse($placeAutocomplete->hasBusinessAccount()); } @@ -568,7 +562,6 @@ public function testPlaceDetail() $this->assertInstanceOf(PlaceDetailService::class, $placeDetail); $this->assertSame($this->client, $placeDetail->getClient()); $this->assertSame($this->messageFactory, $placeDetail->getMessageFactory()); - $this->assertSame($this->serializer, $placeDetail->getSerializer()); $this->assertFalse($placeDetail->hasBusinessAccount()); } @@ -683,7 +676,6 @@ public function testPlaceSearch() $this->assertInstanceOf(PlaceSearchService::class, $placeSearch); $this->assertSame($this->client, $placeSearch->getClient()); $this->assertSame($this->messageFactory, $placeSearch->getMessageFactory()); - $this->assertSame($this->serializer, $placeSearch->getSerializer()); $this->assertFalse($placeSearch->hasBusinessAccount()); } @@ -745,7 +737,6 @@ public function testTimeZone() $this->assertInstanceOf(TimeZoneService::class, $timeZone); $this->assertSame($this->client, $timeZone->getClient()); $this->assertSame($this->messageFactory, $timeZone->getMessageFactory()); - $this->assertSame($this->serializer, $timeZone->getSerializer()); $this->assertFalse($timeZone->hasBusinessAccount()); }