diff options
author | ArthurHoaro <arthur@hoa.ro> | 2015-07-16 13:53:39 +0200 |
---|---|---|
committer | ArthurHoaro <arthur@hoa.ro> | 2015-11-07 15:27:22 +0100 |
commit | d06265fb5785493ee845d4c4a86583402b475b60 (patch) | |
tree | 5743ae2e5bf092e9f626ebe074ec17395c107e5e /tests/PluginManagerTest.php | |
parent | 567967fdf94b2b8ba2b2fc9c8836e89ac23c8c71 (diff) | |
download | Shaarli-d06265fb5785493ee845d4c4a86583402b475b60.tar.gz Shaarli-d06265fb5785493ee845d4c4a86583402b475b60.tar.zst Shaarli-d06265fb5785493ee845d4c4a86583402b475b60.zip |
Unit tests for Router and PluginManager.
Diffstat (limited to 'tests/PluginManagerTest.php')
-rw-r--r--[-rwxr-xr-x] | tests/PluginManagerTest.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/PluginManagerTest.php b/tests/PluginManagerTest.php index 749ce2b5..df2614b5 100755..100644 --- a/tests/PluginManagerTest.php +++ b/tests/PluginManagerTest.php | |||
@@ -13,15 +13,15 @@ class PluginManagerTest extends PHPUnit_Framework_TestCase | |||
13 | { | 13 | { |
14 | /** | 14 | /** |
15 | * Path to tests plugin. | 15 | * Path to tests plugin. |
16 | * @var string $_PLUGIN_PATH | 16 | * @var string $pluginPath |
17 | */ | 17 | */ |
18 | private static $_PLUGIN_PATH = 'tests/plugins'; | 18 | private static $pluginPath = 'tests/plugins'; |
19 | 19 | ||
20 | /** | 20 | /** |
21 | * Test plugin. | 21 | * Test plugin. |
22 | * @var string $_PLUGIN_NAME | 22 | * @var string $pluginName |
23 | */ | 23 | */ |
24 | private static $_PLUGIN_NAME = 'test'; | 24 | private static $pluginName = 'test'; |
25 | 25 | ||
26 | /** | 26 | /** |
27 | * Test plugin loading and hook execution. | 27 | * Test plugin loading and hook execution. |
@@ -32,8 +32,8 @@ class PluginManagerTest extends PHPUnit_Framework_TestCase | |||
32 | { | 32 | { |
33 | $pluginManager = PluginManager::getInstance(); | 33 | $pluginManager = PluginManager::getInstance(); |
34 | 34 | ||
35 | PluginManager::$PLUGINS_PATH = self::$_PLUGIN_PATH; | 35 | PluginManager::$PLUGINS_PATH = self::$pluginPath; |
36 | $pluginManager->load(array(self::$_PLUGIN_NAME)); | 36 | $pluginManager->load(array(self::$pluginName)); |
37 | 37 | ||
38 | $this->assertTrue(function_exists('hook_test_random')); | 38 | $this->assertTrue(function_exists('hook_test_random')); |
39 | 39 | ||