diff options
Diffstat (limited to 'tests/plugins/PluginIssoTest.php')
-rw-r--r-- | tests/plugins/PluginIssoTest.php | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/tests/plugins/PluginIssoTest.php b/tests/plugins/PluginIssoTest.php index 6b7904dd..0ae73183 100644 --- a/tests/plugins/PluginIssoTest.php +++ b/tests/plugins/PluginIssoTest.php | |||
@@ -1,4 +1,5 @@ | |||
1 | <?php | 1 | <?php |
2 | use Shaarli\Config\ConfigManager; | ||
2 | 3 | ||
3 | require_once 'plugins/isso/isso.php'; | 4 | require_once 'plugins/isso/isso.php'; |
4 | 5 | ||
@@ -12,7 +13,7 @@ class PluginIssoTest extends PHPUnit_Framework_TestCase | |||
12 | /** | 13 | /** |
13 | * Reset plugin path | 14 | * Reset plugin path |
14 | */ | 15 | */ |
15 | function setUp() | 16 | public function setUp() |
16 | { | 17 | { |
17 | PluginManager::$PLUGINS_PATH = 'plugins'; | 18 | PluginManager::$PLUGINS_PATH = 'plugins'; |
18 | } | 19 | } |
@@ -20,7 +21,7 @@ class PluginIssoTest extends PHPUnit_Framework_TestCase | |||
20 | /** | 21 | /** |
21 | * Test Isso init without errors. | 22 | * Test Isso init without errors. |
22 | */ | 23 | */ |
23 | function testWallabagInitNoError() | 24 | public function testWallabagInitNoError() |
24 | { | 25 | { |
25 | $conf = new ConfigManager(''); | 26 | $conf = new ConfigManager(''); |
26 | $conf->set('plugins.ISSO_SERVER', 'value'); | 27 | $conf->set('plugins.ISSO_SERVER', 'value'); |
@@ -31,7 +32,7 @@ class PluginIssoTest extends PHPUnit_Framework_TestCase | |||
31 | /** | 32 | /** |
32 | * Test Isso init with errors. | 33 | * Test Isso init with errors. |
33 | */ | 34 | */ |
34 | function testWallabagInitError() | 35 | public function testWallabagInitError() |
35 | { | 36 | { |
36 | $conf = new ConfigManager(''); | 37 | $conf = new ConfigManager(''); |
37 | $errors = isso_init($conf); | 38 | $errors = isso_init($conf); |
@@ -41,7 +42,7 @@ class PluginIssoTest extends PHPUnit_Framework_TestCase | |||
41 | /** | 42 | /** |
42 | * Test render_linklist hook with valid settings to display the comment form. | 43 | * Test render_linklist hook with valid settings to display the comment form. |
43 | */ | 44 | */ |
44 | function testIssoDisplayed() | 45 | public function testIssoDisplayed() |
45 | { | 46 | { |
46 | $conf = new ConfigManager(''); | 47 | $conf = new ConfigManager(''); |
47 | $conf->set('plugins.ISSO_SERVER', 'value'); | 48 | $conf->set('plugins.ISSO_SERVER', 'value'); |
@@ -81,7 +82,7 @@ class PluginIssoTest extends PHPUnit_Framework_TestCase | |||
81 | /** | 82 | /** |
82 | * Test isso plugin when multiple links are displayed (shouldn't be displayed). | 83 | * Test isso plugin when multiple links are displayed (shouldn't be displayed). |
83 | */ | 84 | */ |
84 | function testIssoMultipleLinks() | 85 | public function testIssoMultipleLinks() |
85 | { | 86 | { |
86 | $conf = new ConfigManager(''); | 87 | $conf = new ConfigManager(''); |
87 | $conf->set('plugins.ISSO_SERVER', 'value'); | 88 | $conf->set('plugins.ISSO_SERVER', 'value'); |
@@ -113,7 +114,7 @@ class PluginIssoTest extends PHPUnit_Framework_TestCase | |||
113 | /** | 114 | /** |
114 | * Test isso plugin when using search (shouldn't be displayed). | 115 | * Test isso plugin when using search (shouldn't be displayed). |
115 | */ | 116 | */ |
116 | function testIssoNotDisplayedWhenSearch() | 117 | public function testIssoNotDisplayedWhenSearch() |
117 | { | 118 | { |
118 | $conf = new ConfigManager(''); | 119 | $conf = new ConfigManager(''); |
119 | $conf->set('plugins.ISSO_SERVER', 'value'); | 120 | $conf->set('plugins.ISSO_SERVER', 'value'); |
@@ -141,7 +142,7 @@ class PluginIssoTest extends PHPUnit_Framework_TestCase | |||
141 | /** | 142 | /** |
142 | * Test isso plugin without server configuration (shouldn't be displayed). | 143 | * Test isso plugin without server configuration (shouldn't be displayed). |
143 | */ | 144 | */ |
144 | function testIssoWithoutConf() | 145 | public function testIssoWithoutConf() |
145 | { | 146 | { |
146 | $data = 'abc'; | 147 | $data = 'abc'; |
147 | $conf = new ConfigManager(''); | 148 | $conf = new ConfigManager(''); |