summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2017-02-09 13:17:54 +0100
committerGitHub <noreply@github.com>2017-02-09 13:17:54 +0100
commited4633a5523b14271e1bef9f484bfc0ab4dccde4 (patch)
treeea0aa4f5560475ec7daf634d179e6f9667544ccb /tests
parent51f0555b5c9b888652692ba67085f11e983f495a (diff)
parent5e408aeb6c937980a508d07cce9ed43ff4147c20 (diff)
downloadnextcloud-server-ed4633a5523b14271e1bef9f484bfc0ab4dccde4.tar.gz
nextcloud-server-ed4633a5523b14271e1bef9f484bfc0ab4dccde4.zip
Merge pull request #3408 from nextcloud/nullstorage-free-space
return unknown free space from nullstorage
Diffstat (limited to 'tests')
-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() {