diff --git a/test/Provider/EntityMutationMetadataProviderTest.php b/test/Provider/EntityMutationMetadataProviderTest.php index d74c0cf..be97aad 100644 --- a/test/Provider/EntityMutationMetadataProviderTest.php +++ b/test/Provider/EntityMutationMetadataProviderTest.php @@ -148,7 +148,7 @@ public function testGetMutatedFieldsOneToOneNotOwning() $metadata = $this->buildMetadata($entity, [], ['parent']); $this->em - ->expects($this->exactly(2)) + ->expects($this->once()) ->method('getClassMetadata') ->willReturn($metadata); @@ -157,13 +157,6 @@ public function testGetMutatedFieldsOneToOneNotOwning() ->method('getAssociationMapping') ->with('parent') ->willReturn(['type' => ClassMetadataInfo::ONE_TO_ONE, 'isOwningSide' => false]); - $metadata - ->expects($this->once()) - ->method('getAssociationTargetClass'); - $metadata - ->expects($this->exactly(2)) - ->method('getFieldValue') - ->willReturnOnConsecutiveCalls($entity->parent, $original->parent); $provider = new EntityMutationMetadataProvider($this->reader); $this->assertCount(0, $provider->getMutatedFields($this->em, $entity, $original));