summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2013-11-14 15:36:03 +0100
committerVincent Petry <pvince81@owncloud.com>2013-11-15 10:40:01 +0100
commita7a87d074bd6803da7def6b53a496e95b631ef12 (patch)
tree3e5a6caafd7ec0d7020ae7319e6a47326a0d12ae
parent42e553cdc0a1e9860963679a57677b4218448610 (diff)
downloadnextcloud-server-a7a87d074bd6803da7def6b53a496e95b631ef12.tar.gz
nextcloud-server-a7a87d074bd6803da7def6b53a496e95b631ef12.zip
Added missing test with leading backslash
-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\\'));