aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/plugins/PluginIssoTest.php
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2018-07-28 11:07:55 +0200
committerArthurHoaro <arthur@hoa.ro>2018-07-28 11:07:55 +0200
commit83faedadff76c5bdca036f39f13943f63b27e164 (patch)
tree6f44cede16ec6a60f10b9699e211e0818f06d2c8 /tests/plugins/PluginIssoTest.php
parent1d9eb22a3df85b67fe6652c0876cd7382c2fb525 (diff)
parent658988f3aeba7a5a938783249ccf2765251e5597 (diff)
downloadShaarli-83faedadff76c5bdca036f39f13943f63b27e164.tar.gz
Shaarli-83faedadff76c5bdca036f39f13943f63b27e164.tar.zst
Shaarli-83faedadff76c5bdca036f39f13943f63b27e164.zip
Merge tag 'v0.9.7' into stable
Release v0.9.7
Diffstat (limited to 'tests/plugins/PluginIssoTest.php')
-rw-r--r--tests/plugins/PluginIssoTest.php15
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
2use Shaarli\Config\ConfigManager;
2 3
3require_once 'plugins/isso/isso.php'; 4require_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('');