aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/plugins/PluginReadityourselfTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/plugins/PluginReadityourselfTest.php')
-rw-r--r--tests/plugins/PluginReadityourselfTest.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/plugins/PluginReadityourselfTest.php b/tests/plugins/PluginReadityourselfTest.php
index 8bf17bf1..bc5da042 100644
--- a/tests/plugins/PluginReadityourselfTest.php
+++ b/tests/plugins/PluginReadityourselfTest.php
@@ -25,7 +25,8 @@ class PluginReadityourselfTest extends PHPUnit_Framework_TestCase
25 */ 25 */
26 function testReadityourselfLinklist() 26 function testReadityourselfLinklist()
27 { 27 {
28 $GLOBALS['plugins']['READITYOUSELF_URL'] = 'value'; 28 $conf = ConfigManager::getInstance();
29 $conf->set('plugins.READITYOUSELF_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,
@@ -52,7 +53,8 @@ class PluginReadityourselfTest extends PHPUnit_Framework_TestCase
52 */ 53 */
53 function testReadityourselfLinklistWithoutConfig() 54 function testReadityourselfLinklistWithoutConfig()
54 { 55 {
55 unset($GLOBALS['plugins']['READITYOUSELF_URL']); 56 $conf = ConfigManager::getInstance();
57 $conf->set('plugins.READITYOUSELF_URL', null);
56 $str = 'http://randomstr.com/test'; 58 $str = 'http://randomstr.com/test';
57 $data = array( 59 $data = array(
58 'title' => $str, 60 'title' => $str,