summaryrefslogtreecommitdiffstats
path: root/build/integration/features/bootstrap
diff options
context:
space:
mode:
authorSergio Bertolin <sbertolin@solidgear.es>2016-08-08 13:17:28 +0000
committerLukas Reschke <lukas@statuscode.ch>2016-08-30 17:23:08 +0200
commit85f00e2c0144a9420ae928f27235bb142aad2c17 (patch)
treeba7b725aa36e12b819ac3fa2c1dabcd83403c7cd /build/integration/features/bootstrap
parentf72fea8d0ec5ff00a31c81a17059547becb2c37e (diff)
downloadnextcloud-server-85f00e2c0144a9420ae928f27235bb142aad2c17.tar.gz
nextcloud-server-85f00e2c0144a9420ae928f27235bb142aad2c17.zip
Added feature and context, not working yet, option to allow sharing needs to be added
Diffstat (limited to 'build/integration/features/bootstrap')
-rw-r--r--build/integration/features/bootstrap/ExternalStorageContext.php24
1 files changed, 24 insertions, 0 deletions
diff --git a/build/integration/features/bootstrap/ExternalStorageContext.php b/build/integration/features/bootstrap/ExternalStorageContext.php
new file mode 100644
index 00000000000..90dc06cf571
--- /dev/null
+++ b/build/integration/features/bootstrap/ExternalStorageContext.php
@@ -0,0 +1,24 @@
+<?php
+
+
+require __DIR__ . '/../../vendor/autoload.php';
+
+use Behat\Gherkin\Node\TableNode;
+use GuzzleHttp\Client;
+use GuzzleHttp\Message\ResponseInterface;
+
+class ExternalStorageContext implements \Behat\Behat\Context\Context {
+
+
+ /**
+ * @AfterScenario
+ */
+ public static function removeFilesFromLocalStorage(){
+ $dir = "./local_storage/";
+ $di = new RecursiveDirectoryIterator($dir, FilesystemIterator::SKIP_DOTS);
+ $ri = new RecursiveIteratorIterator($di, RecursiveIteratorIterator::CHILD_FIRST);
+ foreach ( $ri as $file ) {
+ $file->isDir() ? rmdir($file) : unlink($file);
+ }
+ }
+}