Browse Source

Fix Files\Storage\Home::testRoot()

tags/v8.0.0alpha1
Joas Schilling 9 years ago
parent
commit
53318c4bb5
1 changed files with 6 additions and 1 deletions
  1. 6
    1
      tests/lib/files/storage/home.php

+ 6
- 1
tests/lib/files/storage/home.php View File

@@ -75,7 +75,12 @@ class Home extends Storage {
* Tests that the root path matches the data dir
*/
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…
Cancel
Save