Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2013-11-14 18:36:03 +0400
committerVincent Petry <pvince81@owncloud.com>2013-11-14 18:36:03 +0400
commitd9ab964ff980d495c8960a728fb082f006b6a1e6 (patch)
tree180f5dadd73d3d69ec826ea05fd488a43455f1ef /tests
parent008c3b80d6cca6a15299afe01f150f075813df8c (diff)
Added missing test with leading backslash
Diffstat (limited to 'tests')
-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\\'));