aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/PluginManagerTest.php
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2016-08-02 11:02:20 +0200
committerArthurHoaro <arthur@hoa.ro>2016-08-02 11:12:01 +0200
commit15170b516429341ae8e1a9ad2111be5ef90bf6aa (patch)
treea6fcbefb1c26c5e6059d0158530f8a6e4599f399 /tests/PluginManagerTest.php
parent559315ba0a89e306bc46d0a540f1536193860580 (diff)
downloadShaarli-15170b516429341ae8e1a9ad2111be5ef90bf6aa.tar.gz
Shaarli-15170b516429341ae8e1a9ad2111be5ef90bf6aa.tar.zst
Shaarli-15170b516429341ae8e1a9ad2111be5ef90bf6aa.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/PluginManagerTest.php')
-rw-r--r--tests/PluginManagerTest.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/PluginManagerTest.php b/tests/PluginManagerTest.php
index 61efce68..f4826e2e 100644
--- a/tests/PluginManagerTest.php
+++ b/tests/PluginManagerTest.php
@@ -79,8 +79,14 @@ class PluginManagerTest extends PHPUnit_Framework_TestCase
79 $this->pluginManager->load(array(self::$pluginName)); 79 $this->pluginManager->load(array(self::$pluginName));
80 80
81 $expectedParameters = array( 81 $expectedParameters = array(
82 'pop' => '', 82 'pop' => array(
83 'hip' => '', 83 'value' => '',
84 'desc' => 'pop description',
85 ),
86 'hip' => array(
87 'value' => '',
88 'desc' => '',
89 ),
84 ); 90 );
85 $meta = $this->pluginManager->getPluginsMeta(); 91 $meta = $this->pluginManager->getPluginsMeta();
86 $this->assertEquals('test plugin', $meta[self::$pluginName]['description']); 92 $this->assertEquals('test plugin', $meta[self::$pluginName]['description']);