summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2020-12-08 09:39:45 +0100
committerGitHub <noreply@github.com>2020-12-08 09:39:45 +0100
commitfda6ffc866cf8c5d3579fe95d1731ab747894002 (patch)
tree7f24f9a2bc0972d8396cca2bdc7db8d25dc1ed3e /apps/files_sharing
parent7e784afa6576db2876a86df1e9ec40bc1d1f7596 (diff)
parenta9ee98e0705946e582ae937f287ef4f00205e76e (diff)
downloadnextcloud-server-fda6ffc866cf8c5d3579fe95d1731ab747894002.tar.gz
nextcloud-server-fda6ffc866cf8c5d3579fe95d1731ab747894002.zip
Merge pull request #23780 from nextcloud/enh/ci/php8
PHP8 CI
Diffstat (limited to 'apps/files_sharing')
-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() {