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 {
|
class SMB extends Storage {
|
||||||
|
|
||||||
private $config;
|
|
||||||
|
|
||||||
protected function setUp() {
|
protected function setUp() {
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
|
|
||||||
|
@ -20,6 +18,9 @@ class SMB extends Storage {
|
||||||
if (!is_array($config) or !$config['run']) {
|
if (!is_array($config) or !$config['run']) {
|
||||||
$this->markTestSkipped('Samba backend not configured');
|
$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
|
$config['root'] .= $id; //make sure we have an new empty folder to work in
|
||||||
$this->instance = new \OC\Files\Storage\SMB($config);
|
$this->instance = new \OC\Files\Storage\SMB($config);
|
||||||
$this->instance->mkdir('/');
|
$this->instance->mkdir('/');
|
||||||
|
|
|
@ -10,8 +10,6 @@ namespace Test\Files\Storage;
|
||||||
|
|
||||||
class DAV extends Storage {
|
class DAV extends Storage {
|
||||||
|
|
||||||
private $config;
|
|
||||||
|
|
||||||
protected function setUp() {
|
protected function setUp() {
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue