diff options
author | Robin Appelman <icewind@owncloud.com> | 2013-10-01 22:29:33 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2013-10-01 22:29:33 +0200 |
commit | ea566868a8c0ce7da49fceb29a9d22b46034d642 (patch) | |
tree | c8ec02c23f9754e9bb912ba944cc776a01276b9f /apps/files_external/tests | |
parent | ea6115bfaa6f8598da727dfacbcf093578149d9d (diff) | |
download | nextcloud-server-ea566868a8c0ce7da49fceb29a9d22b46034d642.tar.gz nextcloud-server-ea566868a8c0ce7da49fceb29a9d22b46034d642.zip |
return the correct result when doing an smb rename
Diffstat (limited to 'apps/files_external/tests')
-rw-r--r-- | apps/files_external/tests/smb.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/apps/files_external/tests/smb.php b/apps/files_external/tests/smb.php index ca2a93c8944..86dbd3ab88d 100644 --- a/apps/files_external/tests/smb.php +++ b/apps/files_external/tests/smb.php @@ -15,7 +15,7 @@ class SMB extends Storage { public function setUp() { $id = uniqid(); $this->config = include('files_external/tests/config.php'); - if ( ! is_array($this->config) or ! isset($this->config['smb']) or ! $this->config['smb']['run']) { + if (!is_array($this->config) or !isset($this->config['smb']) or !$this->config['smb']['run']) { $this->markTestSkipped('Samba backend not configured'); } $this->config['smb']['root'] .= $id; //make sure we have an new empty folder to work in @@ -28,4 +28,10 @@ class SMB extends Storage { \OCP\Files::rmdirr($this->instance->constructUrl('')); } } + + public function testRenameWithSpaces() { + $this->instance->mkdir('with spaces'); + $result = $this->instance->rename('with spaces', 'foo bar'); + $this->assertTrue($result); + } } |