From 3b5e0d19bb9d9357f1fbaaf5a37aeda34819023f Mon Sep 17 00:00:00 2001 From: Christian Hartmann Date: Tue, 10 Sep 2024 23:06:54 +0200 Subject: [PATCH] fix test Signed-off-by: Christian Hartmann --- tests/Unit/Controller/ShareApiControllerTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Unit/Controller/ShareApiControllerTest.php b/tests/Unit/Controller/ShareApiControllerTest.php index 005cd5ac7..588945238 100644 --- a/tests/Unit/Controller/ShareApiControllerTest.php +++ b/tests/Unit/Controller/ShareApiControllerTest.php @@ -547,8 +547,8 @@ public function testDeleteShare() { ->willReturn($form); $this->shareMapper->expects($this->once()) - ->method('deleteById') - ->with('8'); + ->method('delete') + ->with($share); $response = new DataResponse(8); $this->assertEquals($response, $this->shareApiController->deleteShare(5, 8));