|
|
@ -46,7 +46,7 @@ class EtagTest extends \PHPUnit_Framework_TestCase { |
|
|
|
\OC_Util::setupFS($this->uid); |
|
|
|
\OC_Util::setupFS($this->uid); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public function testWithSharing() { |
|
|
|
public function testNewUser() { |
|
|
|
$user1 = uniqid('user_'); |
|
|
|
$user1 = uniqid('user_'); |
|
|
|
$this->userBackend->createUser($user1, ''); |
|
|
|
$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/bar.txt', 'fgh'); |
|
|
|
Filesystem::file_put_contents('/folder/subfolder/qwerty.txt', 'jkl'); |
|
|
|
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); |
|
|
|
$originalEtags = $this->getEtags($files); |
|
|
|
|
|
|
|
|
|
|
|
$scanner = new \OC\Files\Utils\Scanner($user1); |
|
|
|
$scanner = new \OC\Files\Utils\Scanner($user1); |
|
|
|