Skip to content
Snippets Groups Projects
Commit f935a385 authored by Björn Schießle's avatar Björn Schießle
Browse files

add some comments

parent 5b4f515e
No related branches found
No related tags found
No related merge requests found
...@@ -226,6 +226,7 @@ class Test_Files_Sharing_Api extends \PHPUnit_Framework_TestCase { ...@@ -226,6 +226,7 @@ class Test_Files_Sharing_Api extends \PHPUnit_Framework_TestCase {
// share was successful? // share was successful?
$this->assertTrue($result); $this->assertTrue($result);
// get item to determine share ID
$result = \OCP\Share::getItemShared('file', $fileInfo['fileid']); $result = \OCP\Share::getItemShared('file', $fileInfo['fileid']);
$this->assertEquals(count($result), 1); $this->assertEquals(count($result), 1);
...@@ -233,13 +234,13 @@ class Test_Files_Sharing_Api extends \PHPUnit_Framework_TestCase { ...@@ -233,13 +234,13 @@ class Test_Files_Sharing_Api extends \PHPUnit_Framework_TestCase {
// get first element // get first element
$share = reset($result); $share = reset($result);
// call getShare() with share ID
$params = array('id' => $share['id']); $params = array('id' => $share['id']);
$result = Share\Api::getShare($params); $result = Share\Api::getShare($params);
$this->assertTrue($result->succeeded()); $this->assertTrue($result->succeeded());
// test should return one share created from testCreateShare() // test should return one share
$this->assertEquals(count($result->getData()), 1); $this->assertEquals(count($result->getData()), 1);
\OCP\Share::unshare('file', $fileInfo['fileid'], \OCP\Share::SHARE_TYPE_USER, \OCP\Share::unshare('file', $fileInfo['fileid'], \OCP\Share::SHARE_TYPE_USER,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment