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
|
* @expectedException \Sabre\DAV\Exception\NotFound
|
||||||
*/
|
*/
|
||||||
public function testGetThrowsIfNoPermission() {
|
public function testGetThrowsIfNoPermission() {
|
||||||
$view = $this->getMockBuilder(View::class)
|
$view = $this->getMockBuilder('\OC\Files\View')
|
||||||
->setMethods(['fopen'])
|
->setMethods(['fopen'])
|
||||||
->getMock();
|
->getMock();
|
||||||
$view->expects($this->never())
|
$view->expects($this->never())
|
||||||
->method('fopen');
|
->method('fopen');
|
||||||
|
|
||||||
$info = new FileInfo('/test.txt', $this->getMockStorage(), null, [
|
$info = new \OC\Files\FileInfo('/test.txt', $this->getMockStorage(), null, [
|
||||||
'permissions' => Constants::PERMISSION_CREATE // no read perm
|
'permissions' => \OCP\Constants::PERMISSION_CREATE // no read perm
|
||||||
], null);
|
], null);
|
||||||
|
|
||||||
$file = new File($view, $info);
|
$file = new \OCA\DAV\Connector\Sabre\File($view, $info);
|
||||||
|
|
||||||
$file->get();
|
$file->get();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue