diff --git a/test/unit/model/sharedStimulus/service/CopyServiceTest.php b/test/unit/model/sharedStimulus/service/CopyServiceTest.php index 168f8701d..6493e1c90 100644 --- a/test/unit/model/sharedStimulus/service/CopyServiceTest.php +++ b/test/unit/model/sharedStimulus/service/CopyServiceTest.php @@ -175,6 +175,12 @@ public function testSuccessfulCopy(): void ->method('getUri') ->willReturn('http://example.com/resource2'); + $propertyMock = $this->createMock(core_kernel_classes_Property::class); + $targetResource + ->expects($this->once()) + ->method('getProperty') + ->willReturn($propertyMock); + $this->ontology ->expects($this->at(0)) ->method('getResource')