summaryrefslogtreecommitdiffstats
path: root/apps/dav
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2017-04-27 15:45:41 +0200
committerJoas Schilling <coding@schilljs.com>2017-04-27 15:45:41 +0200
commit5f6153168f89f14c0ada0c98a205cae5eb504d70 (patch)
tree23b31bed20a91841621c98b469fe840559f70c7d /apps/dav
parenta9d06c07d8ee6f8921abc36121a0658e5b536c6c (diff)
downloadnextcloud-server-5f6153168f89f14c0ada0c98a205cae5eb504d70.tar.gz
nextcloud-server-5f6153168f89f14c0ada0c98a205cae5eb504d70.zip
Fix class names
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/dav')
-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();
}