aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/plugins/PluginWallabagTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/plugins/PluginWallabagTest.php')
-rw-r--r--tests/plugins/PluginWallabagTest.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/plugins/PluginWallabagTest.php b/tests/plugins/PluginWallabagTest.php
index 5d3a60e0..e6f8a8b6 100644
--- a/tests/plugins/PluginWallabagTest.php
+++ b/tests/plugins/PluginWallabagTest.php
@@ -25,7 +25,8 @@ class PluginWallabagTest extends PHPUnit_Framework_TestCase
25 */ 25 */
26 function testWallabagLinklist() 26 function testWallabagLinklist()
27 { 27 {
28 $GLOBALS['plugins']['WALLABAG_URL'] = 'value'; 28 $conf = ConfigManager::getInstance();
29 $conf->set('plugins.WALLABAG_URL', 'value');
29 $str = 'http://randomstr.com/test'; 30 $str = 'http://randomstr.com/test';
30 $data = array( 31 $data = array(
31 'title' => $str, 32 'title' => $str,
@@ -45,7 +46,7 @@ class PluginWallabagTest extends PHPUnit_Framework_TestCase
45 // plugin data 46 // plugin data
46 $this->assertEquals(1, count($link['link_plugin'])); 47 $this->assertEquals(1, count($link['link_plugin']));
47 $this->assertNotFalse(strpos($link['link_plugin'][0], urlencode($str))); 48 $this->assertNotFalse(strpos($link['link_plugin'][0], urlencode($str)));
48 $this->assertNotFalse(strpos($link['link_plugin'][0], $GLOBALS['plugins']['WALLABAG_URL'])); 49 $this->assertNotFalse(strpos($link['link_plugin'][0], $conf->get('plugins.WALLABAG_URL')));
49 } 50 }
50} 51}
51 52