Skip to content

Commit

Permalink
addressing reviews
Browse files Browse the repository at this point in the history
  • Loading branch information
S-Panta committed Jul 23, 2024
1 parent 68a1d0e commit cc68462
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
1 change: 1 addition & 0 deletions tests/acceptance/config/behat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,7 @@ default:
- SharingNgContext:
- SearchContext:
- TagContext:
- TrashbinContext:

extensions:
rdx\behatvars\BehatVariablesExtension: ~
Expand Down
1 change: 1 addition & 0 deletions tests/acceptance/features/bootstrap/TrashbinContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -650,6 +650,7 @@ public function tryToDeleteFileFromTrashbin(?string $user, ?string $originalPath

/**
* @When /^user "([^"]*)" deletes the (?:file|folder|entry) with original path "([^"]*)" from the trashbin using the trashbin API$/
* @Given /^user "([^"]*)" has deleted the (?:file|folder|entry) with original path "([^"]*)" from the trashbin using the trashbin API$/
*
* @param string $user
* @param string $originalPath
Expand Down
14 changes: 12 additions & 2 deletions tests/acceptance/features/cliCommands/cleanupEmptyTrashBin.feature
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,18 @@ Feature: delete empty trash bin folder via CLI command
| userName | Alice |
| displayName | Alice Hansen |
| password | %alt1% |
And user "Alice" has created folder "/folderMain"
And user "Alice" has deleted folder "/folderMain"
And user "Alice" has created the following folders
| path |
| /folder-to-delete |
| /folder-to-restore |
And user "Alice" has uploaded file with content "test file" to "/testfile.txt"
And user "Alice" has deleted the following resources
| path |
| folder-to-delete |
| folder-to-restore |
| testfile.txt |
And user "Alice" has restored the folder with original path "folder-to-restore"
And user "Alice" has deleted the folder with original path "/folder-to-delete" from the trashbin using the trashbin API
And the administrator has stopped the server
When the administrator deletes empty folder inside trashbin using the CLI
Then the command should be successful

0 comments on commit cc68462

Please sign in to comment.