From 33073879bc8de9563bf7ff8fae733f1d69adc2b4 Mon Sep 17 00:00:00 2001 From: Vincent Langlet Date: Wed, 3 Apr 2024 12:52:29 +0200 Subject: [PATCH] Fix --- tests/Mapper/Builder/OptionsBuilderTest.php | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/tests/Mapper/Builder/OptionsBuilderTest.php b/tests/Mapper/Builder/OptionsBuilderTest.php index 349ab624..349196f3 100644 --- a/tests/Mapper/Builder/OptionsBuilderTest.php +++ b/tests/Mapper/Builder/OptionsBuilderTest.php @@ -141,16 +141,18 @@ public function testAddJoin(): void static::assertSame([ 'fieldName' => 'groups', 'targetEntity' => 'App\Entity\Group', - 'joinColumns' => [[ - 'name' => 'parent_id', - 'referencedColumnName' => 'id', - 'onDelete' => 'CASCADE', + 'joinColumns' => [ + [ + 'name' => 'parent_id', + 'referencedColumnName' => 'id', + 'onDelete' => 'CASCADE', + ], + [ + 'name' => 'another_parent_id', + 'referencedColumnName' => 'id', + 'onDelete' => 'CASCADE', + ], ], - [ - 'name' => 'another_parent_id', - 'referencedColumnName' => 'id', - 'onDelete' => 'CASCADE', - ], ], ], $builder->getOptions()); }