aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_external/tests
diff options
context:
space:
mode:
authorVincent Petry <vincent@nextcloud.com>2023-01-11 14:39:39 +0100
committerVincent Petry <vincent@nextcloud.com>2023-01-13 10:27:17 +0100
commita0f70988f426aa3c327c95537f3e62bae2461707 (patch)
tree22c534303d5ef873d86331462e652d504dc96ac9 /apps/files_external/tests
parentb88864b89967cabd78c47d75ee2ff4b1d204934f (diff)
downloadnextcloud-server-a0f70988f426aa3c327c95537f3e62bae2461707.tar.gz
nextcloud-server-a0f70988f426aa3c327c95537f3e62bae2461707.zip
Extend ext storage params to contain default value
Extend the external storage configuration parameters definition to allow to specify a default value Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Diffstat (limited to 'apps/files_external/tests')
-rw-r--r--apps/files_external/tests/DefinitionParameterTest.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/files_external/tests/DefinitionParameterTest.php b/apps/files_external/tests/DefinitionParameterTest.php
index 00df3e0aee1..72e8c013730 100644
--- a/apps/files_external/tests/DefinitionParameterTest.php
+++ b/apps/files_external/tests/DefinitionParameterTest.php
@@ -36,11 +36,13 @@ class DefinitionParameterTest extends \Test\TestCase {
], $param->jsonSerialize());
$param->setType(Param::VALUE_BOOLEAN);
+ $param->setDefaultValue(true);
$this->assertEquals([
'value' => 'bar',
'flags' => 0,
'type' => Param::VALUE_BOOLEAN,
'tooltip' => '',
+ 'defaultValue' => true,
], $param->jsonSerialize());
$param->setType(Param::VALUE_PASSWORD);