diff options
author | Robin Appelman <robin@icewind.nl> | 2020-04-02 17:22:42 +0200 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2020-04-03 15:44:53 +0200 |
commit | 857957b45e563b9ac789adec0374d486c71a96ed (patch) | |
tree | d3cc2627234dfcb87abe55a502ee9687bdbb9531 /apps/files_external/tests | |
parent | bc6a5ef5c4431ca662424dbd1125e65e74b27fa8 (diff) | |
download | nextcloud-server-857957b45e563b9ac789adec0374d486c71a96ed.tar.gz nextcloud-server-857957b45e563b9ac789adec0374d486c71a96ed.zip |
allow setting tooltips for external storage config options
allows explaining non-obvious config options a bit more
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps/files_external/tests')
-rw-r--r-- | apps/files_external/tests/DefinitionParameterTest.php | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/apps/files_external/tests/DefinitionParameterTest.php b/apps/files_external/tests/DefinitionParameterTest.php index 4482bdbae25..862d3deb557 100644 --- a/apps/files_external/tests/DefinitionParameterTest.php +++ b/apps/files_external/tests/DefinitionParameterTest.php @@ -33,14 +33,16 @@ class DefinitionParameterTest extends \Test\TestCase { $this->assertEquals([ 'value' => 'bar', 'flags' => 0, - 'type' => 0 + 'type' => 0, + 'tooltip' => '', ], $param->jsonSerialize()); $param->setType(Param::VALUE_BOOLEAN); $this->assertEquals([ 'value' => 'bar', 'flags' => 0, - 'type' => Param::VALUE_BOOLEAN + 'type' => Param::VALUE_BOOLEAN, + 'tooltip' => '', ], $param->jsonSerialize()); $param->setType(Param::VALUE_PASSWORD); @@ -48,7 +50,8 @@ class DefinitionParameterTest extends \Test\TestCase { $this->assertEquals([ 'value' => 'bar', 'flags' => Param::FLAG_OPTIONAL, - 'type' => Param::VALUE_PASSWORD + 'type' => Param::VALUE_PASSWORD, + 'tooltip' => '', ], $param->jsonSerialize()); $param->setType(Param::VALUE_HIDDEN); @@ -56,7 +59,8 @@ class DefinitionParameterTest extends \Test\TestCase { $this->assertEquals([ 'value' => 'bar', 'flags' => Param::FLAG_NONE, - 'type' => Param::VALUE_HIDDEN + 'type' => Param::VALUE_HIDDEN, + 'tooltip' => '', ], $param->jsonSerialize()); } |