diff options
author | Vincent Petry <pvince81@owncloud.com> | 2015-07-28 11:18:03 +0200 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2015-07-28 11:41:54 +0200 |
commit | 761ba344b786eb913ba41f4382315e8f75a51d2d (patch) | |
tree | 2bce95c07dbcbe902d576fe7b2d3e71aa8c235ba /apps/files_external/tests | |
parent | 6ada1e327661b7ee2a4cf2d49aa6843352d1c31d (diff) | |
download | nextcloud-server-761ba344b786eb913ba41f4382315e8f75a51d2d.tar.gz nextcloud-server-761ba344b786eb913ba41f4382315e8f75a51d2d.zip |
Double slash for SMB storage id for compatibility
Diffstat (limited to 'apps/files_external/tests')
-rw-r--r-- | apps/files_external/tests/backends/smb.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/apps/files_external/tests/backends/smb.php b/apps/files_external/tests/backends/smb.php index 9e60a9e06e0..0da86cb824f 100644 --- a/apps/files_external/tests/backends/smb.php +++ b/apps/files_external/tests/backends/smb.php @@ -61,4 +61,16 @@ class SMB extends Storage { $this->assertTrue($result); $this->assertTrue($this->instance->is_dir('foo bar')); } + + public function testStorageId() { + $this->instance = new \OC\Files\Storage\SMB([ + 'host' => 'testhost', + 'user' => 'testuser', + 'password' => 'somepass', + 'share' => 'someshare', + 'root' => 'someroot', + ]); + $this->assertEquals('smb::testuser@testhost//someshare//someroot/', $this->instance->getId()); + $this->instance = null; + } } |