Skip to content

Commit

Permalink
Fix NeustaConverterExtensionTest::test_with_array_converting_populato…
Browse files Browse the repository at this point in the history
…r() to actually do what it says
  • Loading branch information
jdreesen committed Oct 3, 2023
1 parent 2f5c1bd commit 10ee92d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/DependencyInjection/NeustaConverterExtensionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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
Expand Down

0 comments on commit 10ee92d

Please sign in to comment.