summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/tests
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2016-11-14 11:39:02 +0100
committerGitHub <noreply@github.com>2016-11-14 11:39:02 +0100
commit16a110e803a1786e638b8141fd65fc229b845a5d (patch)
treeb257bcbf5a4d6cb7c1acb31f67d2f6c330597167 /apps/files_sharing/tests
parent4c6e9dccfe354ee435b615e1eda9e980b7398f34 (diff)
parentcbcdf69dc218a9767b2682c0a1825f9f36e78266 (diff)
downloadnextcloud-server-16a110e803a1786e638b8141fd65fc229b845a5d.tar.gz
nextcloud-server-16a110e803a1786e638b8141fd65fc229b845a5d.zip
Merge pull request #2067 from nextcloud/fileinfo-lazy-substorages
only query substorages to calculate the final mtime/size/etag when we need it
Diffstat (limited to 'apps/files_sharing/tests')
-rw-r--r--apps/files_sharing/tests/SizePropagationTest.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/files_sharing/tests/SizePropagationTest.php b/apps/files_sharing/tests/SizePropagationTest.php
index 04db505e8a5..9d80633b46a 100644
--- a/apps/files_sharing/tests/SizePropagationTest.php
+++ b/apps/files_sharing/tests/SizePropagationTest.php
@@ -102,6 +102,7 @@ class SizePropagationTest extends TestCase {
$this->assertTrue($recipientView->file_exists('/sharedfolder/subfolder/foo.txt'));
$recipientRootInfo = $recipientView->getFileInfo('', false);
$recipientRootInfoWithMounts = $recipientView->getFileInfo('', true);
+ $oldRecipientSize = $recipientRootInfoWithMounts->getSize();
// when file changed as recipient
$recipientView->file_put_contents('/sharedfolder/subfolder/foo.txt', 'foobar');
@@ -112,7 +113,7 @@ class SizePropagationTest extends TestCase {
// but the size including mountpoints increases
$newRecipientRootInfo = $recipientView->getFileInfo('', true);
- $this->assertEquals($recipientRootInfoWithMounts->getSize() +3, $newRecipientRootInfo->getSize());
+ $this->assertEquals($oldRecipientSize +3, $newRecipientRootInfo->getSize());
// size of owner's root increases
$this->loginAsUser(self::TEST_FILES_SHARING_API_USER2);