diff options
author | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2020-11-12 11:51:37 +0100 |
---|---|---|
committer | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2020-11-16 08:54:19 +0100 |
commit | 4f5271acf9d2baa08b048ba20f3e730674037625 (patch) | |
tree | 0d1aa22773ebda6330e323d699b97a0d1220c6d5 /build/integration/features/bootstrap/SharingContext.php | |
parent | 4d3cb1533e3e87443baf0f98abf00a8695731c9a (diff) | |
download | nextcloud-server-4f5271acf9d2baa08b048ba20f3e730674037625.tar.gz nextcloud-server-4f5271acf9d2baa08b048ba20f3e730674037625.zip |
Reset app configs by deleting the values instead of setting the defaults
This avoids the need to keep the default values in the integration tests
in sync with the code, and also makes possible to reset values with
"dynamic" defaults (defaults that depend on other values).
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'build/integration/features/bootstrap/SharingContext.php')
-rw-r--r-- | build/integration/features/bootstrap/SharingContext.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/build/integration/features/bootstrap/SharingContext.php b/build/integration/features/bootstrap/SharingContext.php index 447b8f1c024..2fcca2ee2c7 100644 --- a/build/integration/features/bootstrap/SharingContext.php +++ b/build/integration/features/bootstrap/SharingContext.php @@ -37,7 +37,7 @@ class SharingContext implements Context, SnippetAcceptingContext { use CommandLine; protected function resetAppConfigs() { - $this->modifyServerConfig('core', 'shareapi_default_permissions', '31'); - $this->modifyServerConfig('sharebymail', 'enforcePasswordProtection', 'no'); + $this->deleteServerConfig('core', 'shareapi_default_permissions'); + $this->deleteServerConfig('sharebymail', 'enforcePasswordProtection'); } } |