summaryrefslogtreecommitdiffstats
path: root/tests/lib
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2016-01-27 16:16:06 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2016-01-27 16:16:06 +0100
commit6973718fb8cb8d5c5c27690675079b2ef574abd1 (patch)
treef696647f8530d84f9b6700b2e5705fd33301b7c2 /tests/lib
parent05bff25cf3611837da86ea68d050d070cc0a4213 (diff)
parenta4900d721f466540987f2770b5cf66aa95164c85 (diff)
downloadnextcloud-server-6973718fb8cb8d5c5c27690675079b2ef574abd1.tar.gz
nextcloud-server-6973718fb8cb8d5c5c27690675079b2ef574abd1.zip
Merge pull request #21940 from owncloud/share2_do_not_returned_removed_group_shares
[Share 2.0] Properly handle user deleted group shares
Diffstat (limited to 'tests/lib')
-rw-r--r--tests/lib/share20/defaultshareprovidertest.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/lib/share20/defaultshareprovidertest.php b/tests/lib/share20/defaultshareprovidertest.php
index 79cc92116be..f86d4df948d 100644
--- a/tests/lib/share20/defaultshareprovidertest.php
+++ b/tests/lib/share20/defaultshareprovidertest.php
@@ -981,13 +981,13 @@ class DefaultShareProviderTest extends \Test\TestCase {
$this->assertCount(1, $share);
$share = $share[0];
- $this->assertEquals($id, $share->getId());
- $this->assertEquals($group, $share->getSharedWith());
- $this->assertEquals($owner, $share->getShareOwner());
- $this->assertEquals($initiator, $share->getSharedBy());
- $this->assertEquals(\OCP\Share::SHARE_TYPE_GROUP, $share->getShareType());
- $this->assertEquals(0, $share->getPermissions());
- $this->assertEquals('userTarget', $share->getTarget());
+ $this->assertSame($id, $share->getId());
+ $this->assertSame($group, $share->getSharedWith());
+ $this->assertSame($owner, $share->getShareOwner());
+ $this->assertSame($initiator, $share->getSharedBy());
+ $this->assertSame(\OCP\Share::SHARE_TYPE_GROUP, $share->getShareType());
+ $this->assertSame(0, $share->getPermissions());
+ $this->assertSame('userTarget', $share->getTarget());
}
public function testGetSharesBy() {