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-15 13:40:01 +0400
commita7a87d074bd6803da7def6b53a496e95b631ef12 (patch)
tree3e5a6caafd7ec0d7020ae7319e6a47326a0d12ae /tests
parent42e553cdc0a1e9860963679a57677b4218448610 (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 83e0d284822..16b9237150a 100644
--- a/tests/lib/files/filesystem.php
+++ b/tests/lib/files/filesystem.php
@@ -104,6 +104,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\\'));