summaryrefslogtreecommitdiffstats
path: root/build/integration/features/bootstrap/BasicStructure.php
diff options
context:
space:
mode:
Diffstat (limited to 'build/integration/features/bootstrap/BasicStructure.php')
-rw-r--r--build/integration/features/bootstrap/BasicStructure.php11
1 files changed, 10 insertions, 1 deletions
diff --git a/build/integration/features/bootstrap/BasicStructure.php b/build/integration/features/bootstrap/BasicStructure.php
index 7933068b3b3..8e1fcf86ba1 100644
--- a/build/integration/features/bootstrap/BasicStructure.php
+++ b/build/integration/features/bootstrap/BasicStructure.php
@@ -35,7 +35,6 @@ require __DIR__ . '/../../vendor/autoload.php';
trait BasicStructure {
use Auth;
- use Trashbin;
/** @var string */
private $currentUser = '';
@@ -355,6 +354,16 @@ 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
*/