diff options
author | Morris Jobke <morris.jobke@gmail.com> | 2013-11-18 14:42:40 -0800 |
---|---|---|
committer | Morris Jobke <morris.jobke@gmail.com> | 2013-11-18 14:42:40 -0800 |
commit | 4a0d295e4ad2546049919a893ad219944466536a (patch) | |
tree | 876b5b0004e226181161fe8880e8120a17c59588 /tests/lib/files | |
parent | cdc72ddd8d9eeeb3d1bd0d875471bd90463622c9 (diff) | |
parent | 614e4d485c8b74f6879c401f8cbb93e9335bf9b3 (diff) | |
download | nextcloud-server-4a0d295e4ad2546049919a893ad219944466536a.tar.gz nextcloud-server-4a0d295e4ad2546049919a893ad219944466536a.zip |
Merge pull request #5927 from owncloud/quota-excludeextstorage
External storage space is now not counted in total space
Diffstat (limited to 'tests/lib/files')
-rw-r--r-- | tests/lib/files/view.php | 5 |
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']); |