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
path: root/tests
diff options
context:
space:
mode:
authorMorris Jobke <morris.jobke@gmail.com>2013-11-19 02:42:40 +0400
committerMorris Jobke <morris.jobke@gmail.com>2013-11-19 02:42:40 +0400
commit4a0d295e4ad2546049919a893ad219944466536a (patch)
tree876b5b0004e226181161fe8880e8120a17c59588 /tests
parentcdc72ddd8d9eeeb3d1bd0d875471bd90463622c9 (diff)
parent614e4d485c8b74f6879c401f8cbb93e9335bf9b3 (diff)
Merge pull request #5927 from owncloud/quota-excludeextstorage
External storage space is now not counted in total space
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/files/view.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/lib/files/view.php b/tests/lib/files/view.php
index 0cc86d6651a..f358c15dd50 100644
--- a/tests/lib/files/view.php
+++ b/tests/lib/files/view.php
@@ -67,6 +67,11 @@ class View extends \PHPUnit_Framework_TestCase {
$this->assertEquals($storageSize * 3, $cachedData['size']);
$this->assertEquals('httpd/unix-directory', $cachedData['mimetype']);
+ // get cached data excluding mount points
+ $cachedData = $rootView->getFileInfo('/', false);
+ $this->assertEquals($storageSize, $cachedData['size']);
+ $this->assertEquals('httpd/unix-directory', $cachedData['mimetype']);
+
$cachedData = $rootView->getFileInfo('/folder');
$this->assertEquals($storageSize + $textSize, $cachedData['size']);
$this->assertEquals('httpd/unix-directory', $cachedData['mimetype']);