* @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();
}