summaryrefslogtreecommitdiffstats
path: root/apps/dav
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@owncloud.com>2016-04-08 15:03:17 +0200
committerRoeland Jago Douma <rullzer@owncloud.com>2016-04-08 15:23:13 +0200
commit4c9e257b27cd69fdb68abe3ac6559b56468224d3 (patch)
tree7df21255cfde6e19f5386e1c89fec9c9ec28fc62 /apps/dav
parent2a0244df270f20aa38f4685daf7327926ff6fa98 (diff)
downloadnextcloud-server-4c9e257b27cd69fdb68abe3ac6559b56468224d3.tar.gz
nextcloud-server-4c9e257b27cd69fdb68abe3ac6559b56468224d3.zip
Fix filesplugin
Diffstat (limited to 'apps/dav')
-rw-r--r--apps/dav/tests/unit/connector/sabre/filesplugin.php10
1 files changed, 4 insertions, 6 deletions
diff --git a/apps/dav/tests/unit/connector/sabre/filesplugin.php b/apps/dav/tests/unit/connector/sabre/filesplugin.php
index e88066a12da..fb08ee170c4 100644
--- a/apps/dav/tests/unit/connector/sabre/filesplugin.php
+++ b/apps/dav/tests/unit/connector/sabre/filesplugin.php
@@ -84,6 +84,7 @@ class FilesPlugin extends \Test\TestCase {
$node = $this->getMockBuilder($class)
->disableOriginalConstructor()
->getMock();
+
$node->expects($this->any())
->method('getId')
->will($this->returnValue(123));
@@ -164,7 +165,9 @@ class FilesPlugin extends \Test\TestCase {
}
public function testGetPropertiesForFileHome() {
- $node = $this->createTestNode('\OCA\DAV\Files\FilesHome');
+ $node = $this->getMockBuilder('\OCA\DAV\Files\FilesHome')
+ ->disableOriginalConstructor()
+ ->getMock();
$propFind = new \Sabre\DAV\PropFind(
'/dummyPath',
@@ -185,9 +188,6 @@ class FilesPlugin extends \Test\TestCase {
->disableOriginalConstructor()->getMock();
$user->expects($this->never())->method('getUID');
$user->expects($this->never())->method('getDisplayName');
- $node->expects($this->never())->method('getDirectDownload');
- $node->expects($this->never())->method('getOwner');
- $node->expects($this->never())->method('getSize');
$this->plugin->handleGetProperties(
$propFind,
@@ -276,8 +276,6 @@ class FilesPlugin extends \Test\TestCase {
0
);
- $node->expects($this->never())
- ->method('getDirectDownload');
$node->expects($this->once())
->method('getSize')
->will($this->returnValue(1025));