Added missing test with leading backslash
This commit is contained in:
parent
008c3b80d6
commit
d9ab964ff9
|
@ -107,6 +107,8 @@ class Filesystem extends \PHPUnit_Framework_TestCase {
|
||||||
$this->assertEquals('/', \OC\Files\Filesystem::normalizePath('\\', false));
|
$this->assertEquals('/', \OC\Files\Filesystem::normalizePath('\\', false));
|
||||||
$this->assertEquals('/', \OC\Files\Filesystem::normalizePath('\\\\'));
|
$this->assertEquals('/', \OC\Files\Filesystem::normalizePath('\\\\'));
|
||||||
$this->assertEquals('/', \OC\Files\Filesystem::normalizePath('\\\\', false));
|
$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\\'));
|
||||||
$this->assertEquals('/path/', \OC\Files\Filesystem::normalizePath('\\path\\', false));
|
$this->assertEquals('/path/', \OC\Files\Filesystem::normalizePath('\\path\\', false));
|
||||||
$this->assertEquals('/foo/bar', \OC\Files\Filesystem::normalizePath('\\foo\\\\bar\\'));
|
$this->assertEquals('/foo/bar', \OC\Files\Filesystem::normalizePath('\\foo\\\\bar\\'));
|
||||||
|
|
Loading…
Reference in New Issue