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