[Pkg-owncloud-commits] [owncloud] 41/111: Added missing test with leading backslash

David Prévot taffit at moszumanska.debian.org
Wed Nov 20 21:38:38 UTC 2013


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository owncloud.

commit d9ab964ff980d495c8960a728fb082f006b6a1e6
Author: Vincent Petry <pvince81 at owncloud.com>
Date:   Thu Nov 14 15:36:03 2013 +0100

    Added missing test with leading backslash
---
 tests/lib/files/filesystem.php |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/lib/files/filesystem.php b/tests/lib/files/filesystem.php
index e703a96..7cb57bf 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\\'));

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list