diff options
author | Robin Appelman <icewind@owncloud.com> | 2013-12-06 13:00:58 +0100 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2013-12-08 00:15:58 +0100 |
commit | 5d600e9d68bf986674e53d6ffe01e292d3208a89 (patch) | |
tree | 2ad5bd6519afa649173ef396dc6b94f0a3b564f9 | |
parent | 605fa4a444cf2de5deee22e6e298e095eab4c20a (diff) | |
download | nextcloud-server-5d600e9d68bf986674e53d6ffe01e292d3208a89.tar.gz nextcloud-server-5d600e9d68bf986674e53d6ffe01e292d3208a89.zip |
extend test case for etag preservation
-rw-r--r-- | tests/lib/files/etagtest.php | 4 |
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); |