Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: remove tests for serializer #27

Merged
merged 1 commit into from
Feb 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,6 @@ abstract class AbstractIvoryGoogleMapExtensionTest extends TestCase
*/
private $messageFactory;

/**
* @var SerializerInterface|MockObject
*/
private $serializer;

/**
* {@inheritdoc}
*/
Expand All @@ -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);
Expand Down Expand Up @@ -247,6 +241,9 @@ public function testStaticMapBusinessAccountInvalid()
$this->container->compile();
}

/**
* @throws \Exception
*/
public function testDirection()
{
$this->loadConfiguration($this->container, 'direction');
Expand All @@ -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()
Expand Down Expand Up @@ -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());
}

Expand Down Expand Up @@ -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());
}

Expand Down Expand Up @@ -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());
}

Expand Down Expand Up @@ -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());
}

Expand Down Expand Up @@ -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());
}

Expand Down Expand Up @@ -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());
}

Expand Down Expand Up @@ -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());
}

Expand Down