diff options
author | Vincent Petry <pvince81@owncloud.com> | 2013-11-14 15:36:03 +0100 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2013-11-15 10:40:01 +0100 |
commit | a7a87d074bd6803da7def6b53a496e95b631ef12 (patch) | |
tree | 3e5a6caafd7ec0d7020ae7319e6a47326a0d12ae | |
parent | 42e553cdc0a1e9860963679a57677b4218448610 (diff) | |
download | nextcloud-server-a7a87d074bd6803da7def6b53a496e95b631ef12.tar.gz nextcloud-server-a7a87d074bd6803da7def6b53a496e95b631ef12.zip |
Added missing test with leading backslash
-rw-r--r-- | tests/lib/files/filesystem.php | 2 |
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\\')); |