Skip to content

Commit

Permalink
Assert converter class in test
Browse files Browse the repository at this point in the history
  • Loading branch information
jdreesen committed Oct 3, 2023
1 parent bf80f95 commit 2f5c1bd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/DependencyInjection/NeustaConverterExtensionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ public function test_with_converting_populator(): void
self::assertSame(ConvertingPopulator::class, $populator->getClass());
self::assertTrue($populator->isPublic());
self::assertInstanceOf(TypedReference::class, $populator->getArgument('$converter'));
self::assertSame(GenericConverter::class, (string) $populator->getArgument('$converter'));
self::assertSame('targetTest', $populator->getArgument('$targetPropertyName'));
self::assertSame('sourceTest', $populator->getArgument('$sourcePropertyName'));
}
Expand All @@ -168,6 +169,7 @@ public function test_with_array_converting_populator(): void
self::assertSame(ConvertingPopulator::class, $populator->getClass());
self::assertTrue($populator->isPublic());
self::assertInstanceOf(TypedReference::class, $populator->getArgument('$converter'));
self::assertSame(GenericConverter::class, (string) $populator->getArgument('$converter'));
self::assertSame('targetTest', $populator->getArgument('$targetPropertyName'));
self::assertSame('sourceTest', $populator->getArgument('$sourcePropertyName'));
}
Expand Down

0 comments on commit 2f5c1bd

Please sign in to comment.