]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix duplicate name of class
authorJoas Schilling <coding@schilljs.com>
Thu, 27 Apr 2017 07:15:50 +0000 (09:15 +0200)
committerJoas Schilling <coding@schilljs.com>
Thu, 27 Apr 2017 07:15:50 +0000 (09:15 +0200)
Signed-off-by: Joas Schilling <coding@schilljs.com>
apps/dav/tests/unit/Connector/Sabre/DirectoryTest.php
apps/dav/tests/unit/Connector/Sabre/ObjectTreeTest.php

index 1eb3741abf237bb429a6d6732672f132a9db3891..fa39cd77274fc8dfddb06139f285b26858a2ae8e 100644 (file)
@@ -30,7 +30,7 @@ use OCP\Files\ForbiddenException;
 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;
@@ -386,7 +386,7 @@ class DirectoryTest extends \Test\TestCase {
         * @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);
@@ -412,7 +412,7 @@ class DirectoryTest extends \Test\TestCase {
                $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);
index 098d4e27023243d231dd84fde0f81841ae0014fd..3fae9d626e6c4bb507fd72f0cd38a2c8fc641f17 100644 (file)
@@ -36,7 +36,7 @@ use OC\Files\View;
 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;
@@ -163,7 +163,7 @@ class ObjectTreeTest extends \Test\TestCase {
         * @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);
 
@@ -460,7 +460,7 @@ class ObjectTreeTest extends \Test\TestCase {
                $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);