aboutsummaryrefslogtreecommitdiffstats
path: root/build/integration/features/bootstrap/BasicStructure.php
diff options
context:
space:
mode:
authorSergio Bertolin <sbertolin@solidgear.es>2016-08-09 08:24:03 +0000
committerLukas Reschke <lukas@statuscode.ch>2016-08-30 17:23:13 +0200
commitb154c8fa394fd980fea65b5bd29b8cfb12d3f43c (patch)
tree9206da79397905b9e95891e893c46a71f2dc2833 /build/integration/features/bootstrap/BasicStructure.php
parent85f00e2c0144a9420ae928f27235bb142aad2c17 (diff)
downloadnextcloud-server-b154c8fa394fd980fea65b5bd29b8cfb12d3f43c.tar.gz
nextcloud-server-b154c8fa394fd980fea65b5bd29b8cfb12d3f43c.zip
Removed extra context added needed option and remove storage after external storage scenarios
Diffstat (limited to 'build/integration/features/bootstrap/BasicStructure.php')
-rw-r--r--build/integration/features/bootstrap/BasicStructure.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/build/integration/features/bootstrap/BasicStructure.php b/build/integration/features/bootstrap/BasicStructure.php
index e9e20c047aa..4330a324ad3 100644
--- a/build/integration/features/bootstrap/BasicStructure.php
+++ b/build/integration/features/bootstrap/BasicStructure.php
@@ -344,4 +344,16 @@ trait BasicStructure {
rmdir("../../core/skeleton/PARENT");
}
}
+
+ /**
+ * @AfterScenario @local_storage
+ */
+ 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);
+ }
+ }
}