Skip to content

Commit b00f00d

Browse files
author
abluchet
committed
fix tests
1 parent e017c3f commit b00f00d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/Bridge/Doctrine/Orm/Extension/EagerLoadingExtensionTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ public function testApplyToCollection()
9797
$relatedClassMetadataProphecy = $this->prophesize(ClassMetadata::class);
9898

9999
foreach ($relatedNameCollection as $property) {
100-
if ('id' !== $property) {
101-
$relatedClassMetadataProphecy->hasField($property)->willReturn(!\in_array($property, ['notindatabase', 'embeddedDummy'], true))->shouldBeCalled();
100+
if ('id' !== $property && 'embeddedDummy' !== $property) {
101+
$relatedClassMetadataProphecy->hasField($property)->willReturn(!\in_array($property, ['notindatabase'], true))->shouldBeCalled();
102102
}
103103
}
104104
$relatedClassMetadataProphecy->hasField('embeddedDummy.name')->willReturn(true)->shouldBeCalled();
@@ -183,8 +183,8 @@ public function testApplyToItem()
183183
$relatedClassMetadataProphecy = $this->prophesize(ClassMetadata::class);
184184

185185
foreach ($relatedNameCollection as $property) {
186-
if ('id' !== $property) {
187-
$relatedClassMetadataProphecy->hasField($property)->willReturn(!\in_array($property, ['notindatabase', 'embeddedDummy'], true))->shouldBeCalled();
186+
if ('id' !== $property && 'embeddedDummy' !== $property) {
187+
$relatedClassMetadataProphecy->hasField($property)->willReturn(!\in_array($property, ['notindatabase'], true))->shouldBeCalled();
188188
}
189189
}
190190
$relatedClassMetadataProphecy->hasField('embeddedDummy.name')->willReturn(true)->shouldBeCalled();

0 commit comments

Comments
 (0)