aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/config/ConfigPluginTest.php
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2016-08-02 11:02:20 +0200
committerArthurHoaro <arthur@hoa.ro>2016-11-05 14:29:52 +0100
commitf47d81248d7bcbb478a67c0d0eb2a876c43b9570 (patch)
tree8ccac6c33ef7af840a841559deaf71a5663026eb /tests/config/ConfigPluginTest.php
parent6aa08e74bcd528607cb0fed448cc885709f214fe (diff)
downloadShaarli-f47d81248d7bcbb478a67c0d0eb2a876c43b9570.tar.gz
Shaarli-f47d81248d7bcbb478a67c0d0eb2a876c43b9570.tar.zst
Shaarli-f47d81248d7bcbb478a67c0d0eb2a876c43b9570.zip
Parse plugin parameters description with the PluginManager
Plugin parameter can contain a description in their meta file under the key: parameter.<param_name>="<description>"
Diffstat (limited to 'tests/config/ConfigPluginTest.php')
-rw-r--r--tests/config/ConfigPluginTest.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/config/ConfigPluginTest.php b/tests/config/ConfigPluginTest.php
index 716631b0..3b37cd79 100644
--- a/tests/config/ConfigPluginTest.php
+++ b/tests/config/ConfigPluginTest.php
@@ -101,9 +101,9 @@ class ConfigPluginTest extends PHPUnit_Framework_TestCase
101 $plugins = array( 101 $plugins = array(
102 'plugin_name' => array( 102 'plugin_name' => array(
103 'parameters' => array( 103 'parameters' => array(
104 'param1' => true, 104 'param1' => array('value' => true),
105 'param2' => false, 105 'param2' => array('value' => false),
106 'param3' => '', 106 'param3' => array('value' => ''),
107 ) 107 )
108 ) 108 )
109 ); 109 );
@@ -114,8 +114,8 @@ class ConfigPluginTest extends PHPUnit_Framework_TestCase
114 ); 114 );
115 115
116 $result = load_plugin_parameter_values($plugins, $parameters); 116 $result = load_plugin_parameter_values($plugins, $parameters);
117 $this->assertEquals('value1', $result['plugin_name']['parameters']['param1']); 117 $this->assertEquals('value1', $result['plugin_name']['parameters']['param1']['value']);
118 $this->assertEquals('value2', $result['plugin_name']['parameters']['param2']); 118 $this->assertEquals('value2', $result['plugin_name']['parameters']['param2']['value']);
119 $this->assertEquals('', $result['plugin_name']['parameters']['param3']); 119 $this->assertEquals('', $result['plugin_name']['parameters']['param3']['value']);
120 } 120 }
121} 121}