use OC\Files\FileInfo;
use OCA\DAV\Connector\Sabre\Directory;
-class TestDoubleFileView extends \OC\Files\View {
+class TestViewDirectory extends \OC\Files\View {
private $updatables;
private $deletables;
* @param $updatables
*/
private function moveTest($source, $destination, $updatables, $deletables) {
- $view = new TestDoubleFileView($updatables, $deletables);
+ $view = new TestViewDirectory($updatables, $deletables);
$sourceInfo = new FileInfo($source, null, null, [], null);
$targetInfo = new FileInfo(dirname($destination), null, null, [], null);
$updatables = ['a' => true, 'a/b' => true, 'b' => true, 'c/b' => false];
$deletables = ['a/b' => true];
- $view = new TestDoubleFileView($updatables, $deletables);
+ $view = new TestViewDirectory($updatables, $deletables);
$sourceInfo = new FileInfo($source, null, null, [], null);
$targetInfo = new FileInfo(dirname($destination), null, null, [], null);
use OCA\DAV\Connector\Sabre\Directory;
use OCA\DAV\Connector\Sabre\ObjectTree;
-class TestDoubleFileView extends \OC\Files\View {
+class TestViewObjectTree extends \OC\Files\View {
public function __construct($creatables, $updatables, $deletables, $canRename = true) {
$this->creatables = $creatables;
* @param $throwsBeforeGetNode
*/
private function moveTest($source, $destination, $creatables, $updatables, $deletables, $throwsBeforeGetNode = false) {
- $view = new TestDoubleFileView($creatables, $updatables, $deletables);
+ $view = new TestViewObjectTree($creatables, $updatables, $deletables);
$info = new FileInfo('', null, null, array(), null);
$updatables = array('a' => true, 'a/b' => true, 'b' => true, 'b/b' => false);
$deletables = array('a/b' => true);
- $view = new TestDoubleFileView($updatables, $updatables, $deletables);
+ $view = new TestViewObjectTree($updatables, $updatables, $deletables);
$info = new FileInfo('', null, null, array(), null);