summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2015-11-10 16:31:30 +0100
committerRobin Appelman <icewind@owncloud.com>2015-11-19 13:32:04 +0100
commita95d4c2b22e2cf0deb4958bc3aa3b20ed9d0463c (patch)
treeb0f49d1922aeec7f20e11d2016eff175a933452d /apps/files_sharing
parent888df3933df7f3588de11085035d2d3ae9292fb0 (diff)
downloadnextcloud-server-a95d4c2b22e2cf0deb4958bc3aa3b20ed9d0463c.tar.gz
nextcloud-server-a95d4c2b22e2cf0deb4958bc3aa3b20ed9d0463c.zip
update tests
Diffstat (limited to 'apps/files_sharing')
-rw-r--r--apps/files_sharing/tests/etagpropagation.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/files_sharing/tests/etagpropagation.php b/apps/files_sharing/tests/etagpropagation.php
index 1abf04df84f..2a33732d63f 100644
--- a/apps/files_sharing/tests/etagpropagation.php
+++ b/apps/files_sharing/tests/etagpropagation.php
@@ -193,7 +193,8 @@ class EtagPropagation extends TestCase {
public function testOwnerWritesToSingleFileShare() {
$this->loginAsUser(self::TEST_FILES_SHARING_API_USER1);
- Filesystem::file_put_contents('/foo.txt', 'bar');
+ Filesystem::file_put_contents('/foo.txt', 'longer_bar');
+ Filesystem::touch('/foo.txt', time() - 1);
$this->assertEtagsNotChanged([self::TEST_FILES_SHARING_API_USER4, self::TEST_FILES_SHARING_API_USER3]);
$this->assertEtagsChanged([self::TEST_FILES_SHARING_API_USER1, self::TEST_FILES_SHARING_API_USER2]);