diff options
author | Robin Appelman <icewind@owncloud.com> | 2015-11-10 16:31:30 +0100 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2015-11-19 13:32:04 +0100 |
commit | a95d4c2b22e2cf0deb4958bc3aa3b20ed9d0463c (patch) | |
tree | b0f49d1922aeec7f20e11d2016eff175a933452d /apps | |
parent | 888df3933df7f3588de11085035d2d3ae9292fb0 (diff) | |
download | nextcloud-server-a95d4c2b22e2cf0deb4958bc3aa3b20ed9d0463c.tar.gz nextcloud-server-a95d4c2b22e2cf0deb4958bc3aa3b20ed9d0463c.zip |
update tests
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_sharing/tests/etagpropagation.php | 3 | ||||
-rw-r--r-- | apps/files_trashbin/tests/trashbin.php | 1 | ||||
-rw-r--r-- | apps/files_versions/tests/versions.php | 1 |
3 files changed, 2 insertions, 3 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]); diff --git a/apps/files_trashbin/tests/trashbin.php b/apps/files_trashbin/tests/trashbin.php index e28b854ca1f..934f831ef74 100644 --- a/apps/files_trashbin/tests/trashbin.php +++ b/apps/files_trashbin/tests/trashbin.php @@ -65,7 +65,6 @@ class Test_Trashbin extends \Test\TestCase { \OC::registerShareHooks(); $application = new \OCA\Files_Sharing\AppInfo\Application(); $application->registerMountProviders(); - $application->setupPropagation(); //disable encryption \OC_App::disable('encryption'); diff --git a/apps/files_versions/tests/versions.php b/apps/files_versions/tests/versions.php index b9bc0932a84..6ebbf830e70 100644 --- a/apps/files_versions/tests/versions.php +++ b/apps/files_versions/tests/versions.php @@ -51,7 +51,6 @@ class Test_Files_Versioning extends \Test\TestCase { $application = new \OCA\Files_Sharing\AppInfo\Application(); $application->registerMountProviders(); - $application->setupPropagation(); // create test user self::loginHelper(self::TEST_VERSIONS_USER2, true); |