summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/tests/api.php
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2013-10-11 10:28:01 +0200
committerBjoern Schiessle <schiessle@owncloud.com>2013-10-11 10:28:01 +0200
commit7a1705d28eff8bfcf5921fe8dc181a05f6a5f5a7 (patch)
tree6ad860c072a7165df3ed86460cc8a176750351d4 /apps/files_sharing/tests/api.php
parent3dd313dca2ce1aa94510aa8639d5aa8ad6db3185 (diff)
downloadnextcloud-server-7a1705d28eff8bfcf5921fe8dc181a05f6a5f5a7.tar.gz
nextcloud-server-7a1705d28eff8bfcf5921fe8dc181a05f6a5f5a7.zip
fix api tests
Diffstat (limited to 'apps/files_sharing/tests/api.php')
-rw-r--r--apps/files_sharing/tests/api.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/files_sharing/tests/api.php b/apps/files_sharing/tests/api.php
index 63df0dd7dc3..32795d9d557 100644
--- a/apps/files_sharing/tests/api.php
+++ b/apps/files_sharing/tests/api.php
@@ -196,7 +196,8 @@ class Test_Files_Sharing_Api extends \PHPUnit_Framework_TestCase {
\OCP\Share::shareItem('file', $fileInfo['fileid'], \OCP\Share::SHARE_TYPE_LINK,
null, 1);
- $params = array('itemSource' => $fileInfo['fileid']);
+ $params = array('itemSource' => $fileInfo['fileid'],
+ 'itemType' => 'file');
$result = Share\Api::getShare($params);