From 10ee92ddc8be1b11988fd7d416e9da3b21b46c1e Mon Sep 17 00:00:00 2001 From: Jacob Dreesen Date: Tue, 3 Oct 2023 13:31:19 +0200 Subject: [PATCH] Fix NeustaConverterExtensionTest::test_with_array_converting_populator() to actually do what it says --- tests/DependencyInjection/NeustaConverterExtensionTest.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/DependencyInjection/NeustaConverterExtensionTest.php b/tests/DependencyInjection/NeustaConverterExtensionTest.php index db7b188..899f833 100644 --- a/tests/DependencyInjection/NeustaConverterExtensionTest.php +++ b/tests/DependencyInjection/NeustaConverterExtensionTest.php @@ -155,6 +155,7 @@ public function test_with_array_converting_populator(): void $container = $this->buildContainer([ 'populator' => [ 'foobar' => [ + 'populator' => ArrayConvertingPopulator::class, 'converter' => GenericConverter::class, 'property' => [ 'targetTest' => 'sourceTest', @@ -166,12 +167,12 @@ public function test_with_array_converting_populator(): void // converter $populator = $container->getDefinition('foobar'); - self::assertSame(ConvertingPopulator::class, $populator->getClass()); + self::assertSame(ArrayConvertingPopulator::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')); + self::assertSame('sourceTest', $populator->getArgument('$sourceArrayPropertyName')); } public function test_with_array_converting_populator_with_inner_property(): void