diff options
author | Vincent Petry <vincent@nextcloud.com> | 2022-05-25 09:55:22 +0200 |
---|---|---|
committer | Carl Schwan <carl@carlschwan.eu> | 2022-07-28 16:53:22 +0200 |
commit | 03b1791cca3e0334637aa232d1f7c11850793646 (patch) | |
tree | 33db9b8db60a592089aaa7a4d6c04f4db4c1860f /tests | |
parent | 9493f86de34e76e37c13f87aab3123a3efbfdd84 (diff) | |
download | nextcloud-server-03b1791cca3e0334637aa232d1f7c11850793646.tar.gz nextcloud-server-03b1791cca3e0334637aa232d1f7c11850793646.zip |
Fix share attribute related tests + code style
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/Share20/ManagerTest.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/lib/Share20/ManagerTest.php b/tests/lib/Share20/ManagerTest.php index 797a5ebf683..ab296172a3c 100644 --- a/tests/lib/Share20/ManagerTest.php +++ b/tests/lib/Share20/ManagerTest.php @@ -3132,6 +3132,8 @@ class ManagerTest extends \Test\TestCase { $manager->expects($this->once())->method('getShareById')->with('foo:42')->willReturn($originalShare); $share = $this->manager->newShare(); + $attrs = $this->manager->newShare()->newAttributes(); + $attrs->setAttribute('app1', 'perm1', true); $share->setProviderId('foo') ->setId('42') ->setShareType(IShare::TYPE_USER) @@ -3164,6 +3166,7 @@ class ManagerTest extends \Test\TestCase { 'uidOwner' => 'sharer', 'permissions' => 31, 'path' => '/myPath', + 'attributes' => $attrs->toArray(), ]); $manager->updateShare($share); |