aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/dav/tests/unit/Connector/Sabre/FileTest.php8
1 files 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();
}