aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/tests
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2020-12-03 16:38:25 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2020-12-07 15:44:04 +0100
commitbbf66f8637506d01f9bce5c80064346297521506 (patch)
treee0737b718f6668241d46830e4b37840e65ed2a86 /apps/files_sharing/tests
parentc02e6fcae218387a67d201d4171b312e2e82d310 (diff)
downloadnextcloud-server-bbf66f8637506d01f9bce5c80064346297521506.tar.gz
nextcloud-server-bbf66f8637506d01f9bce5c80064346297521506.zip
Harde CapabiltiesTest
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/files_sharing/tests')
-rw-r--r--apps/files_sharing/tests/CapabilitiesTest.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/apps/files_sharing/tests/CapabilitiesTest.php b/apps/files_sharing/tests/CapabilitiesTest.php
index a49074cb60e..6cba6ef6c94 100644
--- a/apps/files_sharing/tests/CapabilitiesTest.php
+++ b/apps/files_sharing/tests/CapabilitiesTest.php
@@ -71,9 +71,9 @@ class CapabilitiesTest extends \Test\TestCase {
];
$result = $this->getResults($map);
$this->assertTrue($result['api_enabled']);
- $this->assertContains('public', $result);
- $this->assertContains('user', $result);
- $this->assertContains('resharing', $result);
+ $this->assertArrayHasKey('public', $result);
+ $this->assertArrayHasKey('user', $result);
+ $this->assertArrayHasKey('resharing', $result);
}
public function testDisabledSharingAPI() {
@@ -82,9 +82,9 @@ class CapabilitiesTest extends \Test\TestCase {
];
$result = $this->getResults($map);
$this->assertFalse($result['api_enabled']);
- $this->assertNotContains('public', $result);
- $this->assertNotContains('user', $result);
- $this->assertNotContains('resharing', $result);
+ $this->assertFalse($result['public']['enabled']);
+ $this->assertFalse($result['user']['send_mail']);
+ $this->assertFalse($result['resharing']);
}
public function testNoLinkSharing() {