]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix class names 4524/head
authorJoas Schilling <coding@schilljs.com>
Thu, 27 Apr 2017 13:45:41 +0000 (15:45 +0200)
committerJoas Schilling <coding@schilljs.com>
Thu, 27 Apr 2017 13:45:41 +0000 (15:45 +0200)
Signed-off-by: Joas Schilling <coding@schilljs.com>
apps/dav/tests/unit/Connector/Sabre/FileTest.php

index 81b7ad27d6a5753e76639e31f77ffe864337a556..e2666d0de27daf10d3395807efeb3d740970c7fc 100644 (file)
@@ -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();
        }