Fix duplicate name of class

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2017-04-27 09:15:50 +02:00
parent d379b197d5
commit 53deb26778
No known key found for this signature in database
GPG Key ID: E166FD8976B3BAC8
2 changed files with 6 additions and 6 deletions

View 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);

View 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);