also make sure we have a leading slash for the test root
This commit is contained in:
parent
6467369cad
commit
6477e39be9
|
@ -10,8 +10,6 @@ namespace Test\Files\Storage;
|
|||
|
||||
class SMB extends Storage {
|
||||
|
||||
private $config;
|
||||
|
||||
protected function setUp() {
|
||||
parent::setUp();
|
||||
|
||||
|
@ -20,6 +18,9 @@ class SMB extends Storage {
|
|||
if (!is_array($config) or !$config['run']) {
|
||||
$this->markTestSkipped('Samba backend not configured');
|
||||
}
|
||||
if (substr($config['root'], -1, 1) != '/') {
|
||||
$config['root'] .= '/';
|
||||
}
|
||||
$config['root'] .= $id; //make sure we have an new empty folder to work in
|
||||
$this->instance = new \OC\Files\Storage\SMB($config);
|
||||
$this->instance->mkdir('/');
|
||||
|
|
|
@ -10,8 +10,6 @@ namespace Test\Files\Storage;
|
|||
|
||||
class DAV extends Storage {
|
||||
|
||||
private $config;
|
||||
|
||||
protected function setUp() {
|
||||
parent::setUp();
|
||||
|
||||
|
|
Loading…
Reference in New Issue