adjust tests

This commit is contained in:
Bjoern Schiessle 2013-10-17 11:23:07 +02:00
parent abf10ac9bd
commit ab6ee79e11
2 changed files with 3 additions and 4 deletions

View File

@ -102,7 +102,7 @@ class Api {
// include also reshares in the lists. This means that the result
// will contain every user with access to the file.
if ($params['reshares'] === true) {
if (isset($params['reshares']) && $params['reshares'] === true) {
$shares = self::addReshares($shares, $itemSource);
}

View File

@ -197,10 +197,9 @@ 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'],
'itemType' => 'file');
$params = array('path' => $this->filename);
$result = Share\Api::getShare($params);
$result = Share\Api::getAllShares($params);
$this->assertTrue($result->succeeded());