Skip to content

Commit

Permalink
also make sure we have a leading slash for the test root
Browse files Browse the repository at this point in the history
  • Loading branch information
icewind1991 authored and DeepDiver1975 committed Feb 16, 2015
1 parent 6467369 commit 6477e39
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 3 additions & 2 deletions apps/files_external/tests/backends/smb.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

class SMB extends Storage {

private $config;

protected function setUp() {
parent::setUp();

Expand All @@ -20,6 +18,9 @@ protected function setUp() {
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('/');
Expand Down
2 changes: 0 additions & 2 deletions apps/files_external/tests/backends/webdav.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

class DAV extends Storage {

private $config;

protected function setUp() {
parent::setUp();

Expand Down

0 comments on commit 6477e39

Please sign in to comment.