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:
parent
d318c90ef7
commit
6b9a7d3ad9
|
@ -358,6 +358,5 @@ trait BasicStructure {
|
|||
$file->isDir() ? rmdir($file) : unlink($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);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue