summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/tests/capabilities.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2015-08-13 13:07:49 +0200
committerJoas Schilling <nickvergessen@owncloud.com>2015-08-13 13:07:49 +0200
commit20d8576d3dfa54edac2b87377ee6f8a80051c5f6 (patch)
tree7d0090b833ebaacd40aaf5a3a270c6e1372c888f /apps/files_sharing/tests/capabilities.php
parent70504920e78e58990c02bd51e6acdcd68bf659a7 (diff)
downloadnextcloud-server-20d8576d3dfa54edac2b87377ee6f8a80051c5f6.tar.gz
nextcloud-server-20d8576d3dfa54edac2b87377ee6f8a80051c5f6.zip
Fix config map provider for tests
Diffstat (limited to 'apps/files_sharing/tests/capabilities.php')
-rw-r--r--apps/files_sharing/tests/capabilities.php22
1 files changed, 11 insertions, 11 deletions
diff --git a/apps/files_sharing/tests/capabilities.php b/apps/files_sharing/tests/capabilities.php
index b0f6390b013..7656849120b 100644
--- a/apps/files_sharing/tests/capabilities.php
+++ b/apps/files_sharing/tests/capabilities.php
@@ -77,7 +77,7 @@ class FilesSharingCapabilitiesTest extends \Test\TestCase {
public function testLinkPassword() {
$map = [
['core', 'shareapi_allow_links', 'yes', 'yes'],
- ['core', 'shareapi_enforce_links_password', 'yes', 'yes'],
+ ['core', 'shareapi_enforce_links_password', 'no', 'yes'],
];
$result = $this->getResults($map);
$this->assertArrayHasKey('password', $result['public']);
@@ -88,7 +88,7 @@ class FilesSharingCapabilitiesTest extends \Test\TestCase {
public function testLinkNoPassword() {
$map = [
['core', 'shareapi_allow_links', 'yes', 'yes'],
- ['core', 'shareapi_enforce_links_password', 'yes', 'no'],
+ ['core', 'shareapi_enforce_links_password', 'no', 'no'],
];
$result = $this->getResults($map);
$this->assertArrayHasKey('password', $result['public']);
@@ -99,7 +99,7 @@ class FilesSharingCapabilitiesTest extends \Test\TestCase {
public function testLinkNoExpireDate() {
$map = [
['core', 'shareapi_allow_links', 'yes', 'yes'],
- ['core', 'shareapi_default_expire_date', 'yes', 'no'],
+ ['core', 'shareapi_default_expire_date', 'no', 'no'],
];
$result = $this->getResults($map);
$this->assertArrayHasKey('expire_date', $result['public']);
@@ -110,9 +110,9 @@ class FilesSharingCapabilitiesTest extends \Test\TestCase {
public function testLinkExpireDate() {
$map = [
['core', 'shareapi_allow_links', 'yes', 'yes'],
- ['core', 'shareapi_default_expire_date', 'yes', 'yes'],
+ ['core', 'shareapi_default_expire_date', 'no', 'yes'],
['core', 'shareapi_expire_after_n_days', '7', '7'],
- ['core', 'shareapi_enforce_expire_date', 'yes', 'no'],
+ ['core', 'shareapi_enforce_expire_date', 'no', 'no'],
];
$result = $this->getResults($map);
$this->assertArrayHasKey('expire_date', $result['public']);
@@ -125,8 +125,8 @@ class FilesSharingCapabilitiesTest extends \Test\TestCase {
public function testLinkExpireDateEnforced() {
$map = [
['core', 'shareapi_allow_links', 'yes', 'yes'],
- ['core', 'shareapi_default_expire_date', 'yes', 'yes'],
- ['core', 'shareapi_enforce_expire_date', 'yes', 'yes'],
+ ['core', 'shareapi_default_expire_date', 'no', 'yes'],
+ ['core', 'shareapi_enforce_expire_date', 'no', 'yes'],
];
$result = $this->getResults($map);
$this->assertArrayHasKey('expire_date', $result['public']);
@@ -137,7 +137,7 @@ class FilesSharingCapabilitiesTest extends \Test\TestCase {
public function testLinkSendMail() {
$map = [
['core', 'shareapi_allow_links', 'yes', 'yes'],
- ['core', 'shareapi_allow_public_notification', 'yes', 'yes'],
+ ['core', 'shareapi_allow_public_notification', 'no', 'yes'],
];
$result = $this->getResults($map);
$this->assertTrue($result['public']['send_mail']);
@@ -146,7 +146,7 @@ class FilesSharingCapabilitiesTest extends \Test\TestCase {
public function testLinkNoSendMail() {
$map = [
['core', 'shareapi_allow_links', 'yes', 'yes'],
- ['core', 'shareapi_allow_public_notification', 'yes', 'no'],
+ ['core', 'shareapi_allow_public_notification', 'no', 'no'],
];
$result = $this->getResults($map);
$this->assertFalse($result['public']['send_mail']);
@@ -154,7 +154,7 @@ class FilesSharingCapabilitiesTest extends \Test\TestCase {
public function testUserSendMail() {
$map = [
- ['core', 'shareapi_allow_mail_notification', 'yes', 'yes'],
+ ['core', 'shareapi_allow_mail_notification', 'no', 'yes'],
];
$result = $this->getResults($map);
$this->assertTrue($result['user']['send_mail']);
@@ -162,7 +162,7 @@ class FilesSharingCapabilitiesTest extends \Test\TestCase {
public function testUserNoSendMail() {
$map = [
- ['core', 'shareapi_allow_mail_notification', 'yes', 'no'],
+ ['core', 'shareapi_allow_mail_notification', 'no', 'no'],
];
$result = $this->getResults($map);
$this->assertFalse($result['user']['send_mail']);