diff --git a/tests/acceptance/features/apiShareReshareToRoot2/reShareChain.feature b/tests/acceptance/features/apiShareReshareToRoot2/reShareChain.feature index 146fe2019765..87de48ffc13a 100644 --- a/tests/acceptance/features/apiShareReshareToRoot2/reShareChain.feature +++ b/tests/acceptance/features/apiShareReshareToRoot2/reShareChain.feature @@ -16,5 +16,6 @@ Feature: resharing can be done on a reshared resource And user "Brian" has shared file "textfile0_shared.txt" with user "Carol" And user "Carol" has shared file "textfile0_shared.txt" with user "David" When user "Brian" deletes file "/textfile0_shared.txt" using the WebDAV API - Then the content of file "/textfile0_shared.txt" for user "Carol" should be "ownCloud test text file 0" + Then the HTTP status code should be "204" + And the content of file "/textfile0_shared.txt" for user "Carol" should be "ownCloud test text file 0" And the content of file "/textfile0_shared.txt" for user "David" should be "ownCloud test text file 0" diff --git a/tests/acceptance/features/apiShareReshareToRoot3/reShareUpdate.feature b/tests/acceptance/features/apiShareReshareToRoot3/reShareUpdate.feature index 7ab81e354e1a..9c41a766e86c 100644 --- a/tests/acceptance/features/apiShareReshareToRoot3/reShareUpdate.feature +++ b/tests/acceptance/features/apiShareReshareToRoot3/reShareUpdate.feature @@ -126,6 +126,7 @@ Feature: sharing And user "Alice" has updated the last share of "Alice" with | permissions | create,update,read | When user "Brian" deletes the last share using the sharing API + Then the HTTP status code should be "200" And the OCS status code should be "" And user "Carol" should not have any received shares Examples: diff --git a/tests/acceptance/features/bootstrap/Sharing.php b/tests/acceptance/features/bootstrap/Sharing.php index 2a3e90a4f1be..dd4f998c7477 100644 --- a/tests/acceptance/features/bootstrap/Sharing.php +++ b/tests/acceptance/features/bootstrap/Sharing.php @@ -323,6 +323,7 @@ public function userCreatesAShareWithSettings(string $user, ?TableNode $body):vo $user, $body ); + $this->pushToLastStatusCodesArrays(); } /** @@ -931,6 +932,7 @@ public function updateLastShareWithSettings(string $user, ?TableNode $body, ?str */ public function userUpdatesTheLastShareWith(string $user, ?TableNode $body):void { $this->updateLastShareWithSettings($user, $body); + $this->pushToLastStatusCodesArrays(); } /** @@ -1876,6 +1878,7 @@ public function deleteLastShareUsingSharingApiByCurrentUser():void { */ public function userDeletesLastShareUsingTheSharingApi(string $user):void { $this->deleteLastShareUsingSharingApi($user); + $this->pushToLastStatusCodesArrays(); } /**