summaryrefslogtreecommitdiffstats
path: root/tests/lib/files
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2013-11-14 15:36:03 +0100
committerVincent Petry <pvince81@owncloud.com>2013-11-14 15:36:03 +0100
commitd9ab964ff980d495c8960a728fb082f006b6a1e6 (patch)
tree180f5dadd73d3d69ec826ea05fd488a43455f1ef /tests/lib/files
parent008c3b80d6cca6a15299afe01f150f075813df8c (diff)
downloadnextcloud-server-d9ab964ff980d495c8960a728fb082f006b6a1e6.tar.gz
nextcloud-server-d9ab964ff980d495c8960a728fb082f006b6a1e6.zip
Added missing test with leading backslash
Diffstat (limited to 'tests/lib/files')
-rw-r--r--tests/lib/files/filesystem.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/lib/files/filesystem.php b/tests/lib/files/filesystem.php
index e703a961299..7cb57bf95ad 100644
--- a/tests/lib/files/filesystem.php
+++ b/tests/lib/files/filesystem.php
@@ -107,6 +107,8 @@ class Filesystem extends \PHPUnit_Framework_TestCase {
$this->assertEquals('/', \OC\Files\Filesystem::normalizePath('\\', false));
$this->assertEquals('/', \OC\Files\Filesystem::normalizePath('\\\\'));
$this->assertEquals('/', \OC\Files\Filesystem::normalizePath('\\\\', false));
+ $this->assertEquals('/path', \OC\Files\Filesystem::normalizePath('\\path'));
+ $this->assertEquals('/path', \OC\Files\Filesystem::normalizePath('\\path', false));
$this->assertEquals('/path', \OC\Files\Filesystem::normalizePath('\\path\\'));
$this->assertEquals('/path/', \OC\Files\Filesystem::normalizePath('\\path\\', false));
$this->assertEquals('/foo/bar', \OC\Files\Filesystem::normalizePath('\\foo\\\\bar\\'));