Skip to content

Commit

Permalink
Improve Then step in apiShareReshareToRoot suites
Browse files Browse the repository at this point in the history
  • Loading branch information
amrita-shrestha committed Apr 19, 2022
1 parent e98e41f commit 2ef28e4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Original file line number Diff line number Diff line change
Expand Up @@ -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 "<ocs_status_code>"
And user "Carol" should not have any received shares
Examples:
Expand Down
3 changes: 3 additions & 0 deletions tests/acceptance/features/bootstrap/Sharing.php
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,7 @@ public function userCreatesAShareWithSettings(string $user, ?TableNode $body):vo
$user,
$body
);
$this->pushToLastStatusCodesArrays();
}

/**
Expand Down Expand Up @@ -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();
}

/**
Expand Down Expand Up @@ -1876,6 +1878,7 @@ public function deleteLastShareUsingSharingApiByCurrentUser():void {
*/
public function userDeletesLastShareUsingTheSharingApi(string $user):void {
$this->deleteLastShareUsingSharingApi($user);
$this->pushToLastStatusCodesArrays();
}

/**
Expand Down

0 comments on commit 2ef28e4

Please sign in to comment.