diff options
author | Vincent Petry <pvince81@owncloud.com> | 2017-02-01 10:54:10 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2017-03-16 23:53:58 -0600 |
commit | 659006c234ef2bcaefc160b9541644d6668b5d6c (patch) | |
tree | 692f328cedec86392d98749885c1110855106473 /build/integration/features/bootstrap/BasicStructure.php | |
parent | 5683365a2cc605cbaf41290e4cdfde7028f9014a (diff) | |
download | nextcloud-server-659006c234ef2bcaefc160b9541644d6668b5d6c.tar.gz nextcloud-server-659006c234ef2bcaefc160b9541644d6668b5d6c.zip |
Add integration test for trashbin
Add test for basic deletion.
Add test when deleting from shared folder as recipient.
Add test to check that metadata stays when moving out of shared folder
as recipient.
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'build/integration/features/bootstrap/BasicStructure.php')
-rw-r--r-- | build/integration/features/bootstrap/BasicStructure.php | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/build/integration/features/bootstrap/BasicStructure.php b/build/integration/features/bootstrap/BasicStructure.php index 8e1fcf86ba1..7933068b3b3 100644 --- a/build/integration/features/bootstrap/BasicStructure.php +++ b/build/integration/features/bootstrap/BasicStructure.php @@ -35,6 +35,7 @@ require __DIR__ . '/../../vendor/autoload.php'; trait BasicStructure { use Auth; + use Trashbin; /** @var string */ private $currentUser = ''; @@ -354,16 +355,6 @@ trait BasicStructure { } /** - * @When User :user empties trashbin - * @param string $user - */ - public function emptyTrashbin($user) { - $body = new \Behat\Gherkin\Node\TableNode([['allfiles', 'true'], ['dir', '%2F']]); - $this->sendingToWithDirectUrl('POST', "/index.php/apps/files_trashbin/ajax/delete.php", $body); - $this->theHTTPStatusCodeShouldBe('200'); - } - - /** * @When Sleep for :seconds seconds * @param int $seconds */ |