aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_external/tests/DefinitionParameterTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_external/tests/DefinitionParameterTest.php')
-rw-r--r--apps/files_external/tests/DefinitionParameterTest.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/files_external/tests/DefinitionParameterTest.php b/apps/files_external/tests/DefinitionParameterTest.php
index 00df3e0aee1..04d5f6762c5 100644
--- a/apps/files_external/tests/DefinitionParameterTest.php
+++ b/apps/files_external/tests/DefinitionParameterTest.php
@@ -36,15 +36,18 @@ 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);
$param->setFlag(Param::FLAG_OPTIONAL);
+ $param->setDefaultValue(null);
$this->assertEquals([
'value' => 'bar',
'flags' => Param::FLAG_OPTIONAL,