diff options
author | Robin Appelman <icewind@owncloud.com> | 2015-12-02 15:28:49 +0100 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2016-01-14 12:54:42 +0100 |
commit | d2c579e16772cb6666d95d484b9aa11764217a0a (patch) | |
tree | d81f0494e09dafcba38a5a523e4ceae56fbb9b27 /tests | |
parent | 62d383e1ba70b85c488bf72c83d2b117476b100b (diff) | |
download | nextcloud-server-d2c579e16772cb6666d95d484b9aa11764217a0a.tar.gz nextcloud-server-d2c579e16772cb6666d95d484b9aa11764217a0a.zip |
fix quota wrapper
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/files/storage/wrapper/quota.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/lib/files/storage/wrapper/quota.php b/tests/lib/files/storage/wrapper/quota.php index 95bc2ff7a1a..d087a3eef33 100644 --- a/tests/lib/files/storage/wrapper/quota.php +++ b/tests/lib/files/storage/wrapper/quota.php @@ -9,6 +9,8 @@ namespace Test\Files\Storage\Wrapper; //ensure the constants are loaded +use OC\Files\Cache\CacheEntry; + \OC::$loader->load('\OC\Files\Filesystem'); /** @@ -194,7 +196,7 @@ class Quota extends \Test\Files\Storage\Storage { $cache->expects($this->once()) ->method('get') ->with('files') - ->will($this->returnValue(array('size' => 50))); + ->will($this->returnValue(new CacheEntry(['size' => 50]))); $instance = new \OC\Files\Storage\Wrapper\Quota(array('storage' => $storage, 'quota' => 1024, 'root' => 'files')); |