Fix class names
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
a9d06c07d8
commit
5f6153168f
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue