summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2013-12-06 13:00:58 +0100
committerRobin Appelman <icewind@owncloud.com>2013-12-06 13:00:58 +0100
commitcf9b7e343af5193dd0837a6eb340823d539dd58c (patch)
tree49c1a229f0ec0ebe20c4b67447c73c31435eeca2 /tests
parent01ab15a2b0b180b6be8ad6c0e6886da0bc82e596 (diff)
downloadnextcloud-server-cf9b7e343af5193dd0837a6eb340823d539dd58c.tar.gz
nextcloud-server-cf9b7e343af5193dd0837a6eb340823d539dd58c.zip
extend test case for etag preservation
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/files/etagtest.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/lib/files/etagtest.php b/tests/lib/files/etagtest.php
index b50a96ab5bb..04f79594a29 100644
--- a/tests/lib/files/etagtest.php
+++ b/tests/lib/files/etagtest.php
@@ -46,7 +46,7 @@ class EtagTest extends \PHPUnit_Framework_TestCase {
\OC_Util::setupFS($this->uid);
}
- public function testWithSharing() {
+ public function testNewUser() {
$user1 = uniqid('user_');
$this->userBackend->createUser($user1, '');
@@ -59,7 +59,7 @@ class EtagTest extends \PHPUnit_Framework_TestCase {
Filesystem::file_put_contents('/folder/bar.txt', 'fgh');
Filesystem::file_put_contents('/folder/subfolder/qwerty.txt', 'jkl');
- $files = array('/folder', '/foo.txt', '/folder/bar.txt', '/folder/subfolder', '/folder/subfolder/qwerty.txt');
+ $files = array('/', '/folder', '/foo.txt', '/folder/bar.txt', '/folder/subfolder', '/folder/subfolder/qwerty.txt');
$originalEtags = $this->getEtags($files);
$scanner = new \OC\Files\Utils\Scanner($user1);