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..fcdb789386a4 100644 --- a/tests/acceptance/features/bootstrap/Sharing.php +++ b/tests/acceptance/features/bootstrap/Sharing.php @@ -918,6 +918,7 @@ public function updateLastShareWithSettings(string $user, ?TableNode $body, ?str $bodyRows, $this->ocsApiVersion ); + $this->pushToLastStatusCodesArrays(); } /** @@ -1039,6 +1040,7 @@ public function createShare( } } $this->localLastShareTime = \microtime(true); + $this->pushToLastStatusCodesArrays(); } /** @@ -1857,6 +1859,7 @@ public function deleteLastShareUsingSharingApi(string $user):void { $url, null ); + $this->pushToLastStatusCodesArrays(); } /**