Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2017-02-09 05:39:34 +0300
committerRobin Appelman <robin@icewind.nl>2017-02-16 15:38:54 +0300
commit131945593ed4c8d254d1c13eb2380be8184ec4df (patch)
treed36d297094e0cbbfb90ec29877cd7a25d82c0bf8
parent8cf62e21b598643bd648ba9cf95d956d126a60e5 (diff)
Fix unit tests
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
-rw-r--r--tests/lib/Lockdown/Filesystem/NullStorageTest.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/lib/Lockdown/Filesystem/NullStorageTest.php b/tests/lib/Lockdown/Filesystem/NullStorageTest.php
index dc99eb4c03a..c6faf325cd4 100644
--- a/tests/lib/Lockdown/Filesystem/NullStorageTest.php
+++ b/tests/lib/Lockdown/Filesystem/NullStorageTest.php
@@ -27,6 +27,7 @@ use Icewind\Streams\IteratorDirectory;
use OC\ForbiddenException;
use OC\Lockdown\Filesystem\NullCache;
use OC\Lockdown\Filesystem\NullStorage;
+use OC\Files\FileInfo;
use OCP\Files\Storage;
use Test\TestCase;
@@ -182,7 +183,7 @@ class NullStorageTest extends TestCase {
}
public function testFree_space() {
- $this->assertSame(0, $this->storage->free_space('foo'));
+ $this->assertSame(FileInfo::SPACE_UNKNOWN, $this->storage->free_space('foo'));
}
public function testTouch() {