diff options
author | Vincent Petry <pvince81@owncloud.com> | 2013-11-14 18:36:03 +0400 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2013-11-15 13:40:01 +0400 |
commit | a7a87d074bd6803da7def6b53a496e95b631ef12 (patch) | |
tree | 3e5a6caafd7ec0d7020ae7319e6a47326a0d12ae /tests | |
parent | 42e553cdc0a1e9860963679a57677b4218448610 (diff) |
Added missing test with leading backslash
Diffstat (limited to 'tests')
-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\\')); |