fix unit tests

Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
This commit is contained in:
Bjoern Schiessle 2018-07-19 09:26:08 +02:00 committed by John Molakvoæ (skjnldsv)
parent 967a97904f
commit e951ad5034
No known key found for this signature in database
GPG Key ID: 60C25B8C072916CF
1 changed files with 8 additions and 5 deletions

View File

@ -1822,7 +1822,7 @@ class ShareAPIControllerTest extends TestCase {
->setNote('personal note') ->setNote('personal note')
->setId(42); ->setId(42);
/* User backend down */ // User backend down
$result[] = [ $result[] = [
[ [
'id' => 42, 'id' => 42,
@ -1851,8 +1851,7 @@ class ShareAPIControllerTest extends TestCase {
'mimetype' => 'myMimeType', 'mimetype' => 'myMimeType',
], $share, [], false ], $share, [], false
]; ];
// User backend up
/* User backend up */
$result[] = [ $result[] = [
[ [
'id' => 42, 'id' => 42,
@ -1897,8 +1896,7 @@ class ShareAPIControllerTest extends TestCase {
->setTarget('myTarget') ->setTarget('myTarget')
->setNote('personal note') ->setNote('personal note')
->setId(42); ->setId(42);
// User backend down
/* User backend down */
$result[] = [ $result[] = [
[ [
'id' => 42, 'id' => 42,
@ -1929,6 +1927,7 @@ class ShareAPIControllerTest extends TestCase {
]; ];
// with existing group // with existing group
$share = \OC::$server->getShareManager()->newShare(); $share = \OC::$server->getShareManager()->newShare();
$share->setShareType(\OCP\Share::SHARE_TYPE_GROUP) $share->setShareType(\OCP\Share::SHARE_TYPE_GROUP)
->setSharedWith('recipientGroup') ->setSharedWith('recipientGroup')
@ -2123,6 +2122,7 @@ class ShareAPIControllerTest extends TestCase {
'token' => null, 'token' => null,
'uid_file_owner' => 'owner', 'uid_file_owner' => 'owner',
'displayname_file_owner' => 'owner', 'displayname_file_owner' => 'owner',
'note' => '',
'path' => 'folder', 'path' => 'folder',
'item_type' => 'folder', 'item_type' => 'folder',
'storage_id' => 'storageId', 'storage_id' => 'storageId',
@ -2164,6 +2164,7 @@ class ShareAPIControllerTest extends TestCase {
'token' => null, 'token' => null,
'uid_file_owner' => 'owner', 'uid_file_owner' => 'owner',
'displayname_file_owner' => 'owner', 'displayname_file_owner' => 'owner',
'note' => '',
'path' => 'folder', 'path' => 'folder',
'item_type' => 'folder', 'item_type' => 'folder',
'storage_id' => 'storageId', 'storage_id' => 'storageId',
@ -2205,6 +2206,7 @@ class ShareAPIControllerTest extends TestCase {
'token' => null, 'token' => null,
'uid_file_owner' => 'owner', 'uid_file_owner' => 'owner',
'displayname_file_owner' => 'owner', 'displayname_file_owner' => 'owner',
'note' => '',
'path' => 'folder', 'path' => 'folder',
'item_type' => 'folder', 'item_type' => 'folder',
'storage_id' => 'storageId', 'storage_id' => 'storageId',
@ -2261,6 +2263,7 @@ class ShareAPIControllerTest extends TestCase {
'token' => null, 'token' => null,
'uid_file_owner' => 'owner', 'uid_file_owner' => 'owner',
'displayname_file_owner' => 'owner', 'displayname_file_owner' => 'owner',
'note' => '',
'path' => 'folder', 'path' => 'folder',
'item_type' => 'folder', 'item_type' => 'folder',
'storage_id' => 'storageId', 'storage_id' => 'storageId',