also make sure we have a leading slash for the test root

This commit is contained in:
Robin Appelman 2015-02-13 15:27:05 +01:00 committed by Thomas Müller
parent 6467369cad
commit 6477e39be9
2 changed files with 3 additions and 4 deletions

View File

@ -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('/');

View File

@ -10,8 +10,6 @@ namespace Test\Files\Storage;
class DAV extends Storage {
private $config;
protected function setUp() {
parent::setUp();