From 5f6153168f89f14c0ada0c98a205cae5eb504d70 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Thu, 27 Apr 2017 15:45:41 +0200 Subject: [PATCH] Fix class names Signed-off-by: Joas Schilling --- apps/dav/tests/unit/Connector/Sabre/FileTest.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/dav/tests/unit/Connector/Sabre/FileTest.php b/apps/dav/tests/unit/Connector/Sabre/FileTest.php index 81b7ad27d6a..e2666d0de27 100644 --- a/apps/dav/tests/unit/Connector/Sabre/FileTest.php +++ b/apps/dav/tests/unit/Connector/Sabre/FileTest.php @@ -1008,17 +1008,17 @@ class FileTest extends \Test\TestCase { * @expectedException \Sabre\DAV\Exception\NotFound */ public function testGetThrowsIfNoPermission() { - $view = $this->getMockBuilder(View::class) + $view = $this->getMockBuilder('\OC\Files\View') ->setMethods(['fopen']) ->getMock(); $view->expects($this->never()) ->method('fopen'); - $info = new FileInfo('/test.txt', $this->getMockStorage(), null, [ - 'permissions' => Constants::PERMISSION_CREATE // no read perm + $info = new \OC\Files\FileInfo('/test.txt', $this->getMockStorage(), null, [ + 'permissions' => \OCP\Constants::PERMISSION_CREATE // no read perm ], null); - $file = new File($view, $info); + $file = new \OCA\DAV\Connector\Sabre\File($view, $info); $file->get(); } -- 2.39.5