]> source.dussan.org Git - nextcloud-server.git/commitdiff
extend test case for etag preservation
authorRobin Appelman <icewind@owncloud.com>
Fri, 6 Dec 2013 12:00:58 +0000 (13:00 +0100)
committerVincent Petry <pvince81@owncloud.com>
Sat, 7 Dec 2013 23:15:58 +0000 (00:15 +0100)
tests/lib/files/etagtest.php

index b50a96ab5bb9ae01e4ee7ad171935900f232cfc3..04f79594a294ea6403afd27de06cc494e32e60db 100644 (file)
@@ -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);