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-11-05 14:29:52 +0100
commitf47d81248d7bcbb478a67c0d0eb2a876c43b9570 (patch)
tree8ccac6c33ef7af840a841559deaf71a5663026eb /tests/PluginManagerTest.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/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 c7511051..ddf48185 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']);