Removed extra context added needed option and remove storage after external storage scenarios

Conflicts:
	build/integration/features/bootstrap/BasicStructure.php
	build/integration/run.sh
This commit is contained in:
Sergio Bertolin 2016-08-09 08:24:03 +00:00 committed by Lukas Reschke
parent d318c90ef7
commit 6b9a7d3ad9
No known key found for this signature in database
GPG Key ID: B9F6980CF6E759B1
3 changed files with 1 additions and 26 deletions

View File

@ -358,6 +358,5 @@ trait BasicStructure {
$file->isDir() ? rmdir($file) : unlink($file);
}
}
}

View File

@ -1,24 +0,0 @@
<?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);
}
}
}

View File

@ -3,6 +3,7 @@ Feature: external-storage
Given using api version "1"
Given using dav path "remote.php/webdav"
@local_storage
Scenario: Share by link a file inside a local external storage
Given user "user0" exists
And user "user1" exists
@ -21,6 +22,5 @@ Feature: external-storage
| url | AN_URL |
| token | A_TOKEN |
| mimetype | httpd/unix-directory |
And Public shared file "/foo/textfile0.txt" can be downloaded