mirror of
https://github.com/nextcloud/server.git
synced 2024-08-12 14:11:31 +02:00
Fix Files\Storage\Home::testRoot()
This commit is contained in:
parent
0ab973a3a6
commit
53318c4bb5
@ -75,7 +75,12 @@ class Home extends Storage {
|
|||||||
* Tests that the root path matches the data dir
|
* Tests that the root path matches the data dir
|
||||||
*/
|
*/
|
||||||
public function testRoot() {
|
public function testRoot() {
|
||||||
$this->assertEquals($this->tmpDir, $this->instance->getLocalFolder(''));
|
if (\OC_Util::runningOnWindows()) {
|
||||||
|
// Windows removes trailing slashes when returning paths
|
||||||
|
$this->assertEquals(rtrim($this->tmpDir, '/'), $this->instance->getLocalFolder(''));
|
||||||
|
} else {
|
||||||
|
$this->assertEquals($this->tmpDir, $this->instance->getLocalFolder(''));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user