]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - tests/plugins/PluginWallabagTest.php
Use the configuration manager for wallabag and readityourself plugin
[github/shaarli/Shaarli.git] / tests / plugins / PluginWallabagTest.php
index 5d3a60e02d109fec041f433070a38a8b2f6fede3..e6f8a8b64b518502c57903a86d79c6c2c031e7c4 100644 (file)
@@ -25,7 +25,8 @@ class PluginWallabagTest extends PHPUnit_Framework_TestCase
      */
     function testWallabagLinklist()
     {
-        $GLOBALS['plugins']['WALLABAG_URL'] = 'value';
+        $conf = ConfigManager::getInstance();
+        $conf->set('plugins.WALLABAG_URL', 'value');
         $str = 'http://randomstr.com/test';
         $data = array(
             'title' => $str,
@@ -45,7 +46,7 @@ class PluginWallabagTest extends PHPUnit_Framework_TestCase
         // plugin data
         $this->assertEquals(1, count($link['link_plugin']));
         $this->assertNotFalse(strpos($link['link_plugin'][0], urlencode($str)));
-        $this->assertNotFalse(strpos($link['link_plugin'][0], $GLOBALS['plugins']['WALLABAG_URL']));
+        $this->assertNotFalse(strpos($link['link_plugin'][0], $conf->get('plugins.WALLABAG_URL')));
     }
 }