Fix duplicate name of class
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
d379b197d5
commit
53deb26778
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue