summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2013-09-27 14:04:28 +0200
committerBjoern Schiessle <schiessle@owncloud.com>2013-09-27 14:04:28 +0200
commitf935a3855944055fd7047675d07e6094b3736e85 (patch)
treeaf074bf8a6043decafd2d824530da1b4ba99dce7
parent5b4f515e7bc0d2e74094b2caa94b130cf4ec1fda (diff)
downloadnextcloud-server-f935a3855944055fd7047675d07e6094b3736e85.tar.gz
nextcloud-server-f935a3855944055fd7047675d07e6094b3736e85.zip
add some comments
-rw-r--r--apps/files_sharing/tests/api.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/files_sharing/tests/api.php b/apps/files_sharing/tests/api.php
index 51d5da5ac05..04640ab726a 100644
--- a/apps/files_sharing/tests/api.php
+++ b/apps/files_sharing/tests/api.php
@@ -226,6 +226,7 @@ class Test_Files_Sharing_Api extends \PHPUnit_Framework_TestCase {
// share was successful?
$this->assertTrue($result);
+ // get item to determine share ID
$result = \OCP\Share::getItemShared('file', $fileInfo['fileid']);
$this->assertEquals(count($result), 1);
@@ -233,13 +234,13 @@ class Test_Files_Sharing_Api extends \PHPUnit_Framework_TestCase {
// get first element
$share = reset($result);
+ // call getShare() with share ID
$params = array('id' => $share['id']);
-
$result = Share\Api::getShare($params);
$this->assertTrue($result->succeeded());
- // test should return one share created from testCreateShare()
+ // test should return one share
$this->assertEquals(count($result->getData()), 1);
\OCP\Share::unshare('file', $fileInfo['fileid'], \OCP\Share::SHARE_TYPE_USER,