diff options
author | ArthurHoaro <arthur@hoa.ro> | 2015-12-22 10:20:27 +0100 |
---|---|---|
committer | ArthurHoaro <arthur@hoa.ro> | 2015-12-27 15:30:34 +0100 |
commit | 938d9cce77ed5098dd69643795cb4014f3688b35 (patch) | |
tree | b0bbdd80b81e6f54009f0c67631e69020e2f4399 /tests/plugins/PluginWallabagTest.php | |
parent | 79851b489087f8a3027ecd805255cd13ee6fcf63 (diff) | |
download | Shaarli-938d9cce77ed5098dd69643795cb4014f3688b35.tar.gz Shaarli-938d9cce77ed5098dd69643795cb4014f3688b35.tar.zst Shaarli-938d9cce77ed5098dd69643795cb4014f3688b35.zip |
Wallabag plugin improvement
* Fixes a bug where URL weren't properly encoded.
* Adds Wallabag V2 support.
* Adds a URL function to handle trailing slash.
* UT.
* README updated.
Diffstat (limited to 'tests/plugins/PluginWallabagTest.php')
-rw-r--r-- | tests/plugins/PluginWallabagTest.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/plugins/PluginWallabagTest.php b/tests/plugins/PluginWallabagTest.php index 7cc83f4f..5d3a60e0 100644 --- a/tests/plugins/PluginWallabagTest.php +++ b/tests/plugins/PluginWallabagTest.php | |||
@@ -44,6 +44,8 @@ class PluginWallabagTest extends PHPUnit_Framework_TestCase | |||
44 | 44 | ||
45 | // plugin data | 45 | // plugin data |
46 | $this->assertEquals(1, count($link['link_plugin'])); | 46 | $this->assertEquals(1, count($link['link_plugin'])); |
47 | $this->assertNotFalse(strpos($link['link_plugin'][0], $str)); | 47 | $this->assertNotFalse(strpos($link['link_plugin'][0], urlencode($str))); |
48 | $this->assertNotFalse(strpos($link['link_plugin'][0], $GLOBALS['plugins']['WALLABAG_URL'])); | ||
48 | } | 49 | } |
49 | } | 50 | } |
51 | |||