From 2f5c1bd28db8623b48b3e3ca927b09c1e7f1d016 Mon Sep 17 00:00:00 2001 From: Jacob Dreesen Date: Tue, 3 Oct 2023 13:28:24 +0200 Subject: [PATCH] Assert converter class in test --- tests/DependencyInjection/NeustaConverterExtensionTest.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/DependencyInjection/NeustaConverterExtensionTest.php b/tests/DependencyInjection/NeustaConverterExtensionTest.php index 7b822e5..db7b188 100644 --- a/tests/DependencyInjection/NeustaConverterExtensionTest.php +++ b/tests/DependencyInjection/NeustaConverterExtensionTest.php @@ -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')); } @@ -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')); }