diff options
author | ArthurHoaro <arthur@hoa.ro> | 2015-12-22 10:24:31 +0100 |
---|---|---|
committer | ArthurHoaro <arthur@hoa.ro> | 2015-12-22 10:59:41 +0100 |
commit | 49e62f22ad750d4d60936ec8437caee91809b179 (patch) | |
tree | 238d7d9996ce165f71f6a718ccd5a79457962388 /tests/plugins/PlugQrcodeTest.php | |
parent | 79851b489087f8a3027ecd805255cd13ee6fcf63 (diff) | |
download | Shaarli-49e62f22ad750d4d60936ec8437caee91809b179.tar.gz Shaarli-49e62f22ad750d4d60936ec8437caee91809b179.tar.zst Shaarli-49e62f22ad750d4d60936ec8437caee91809b179.zip |
QRCode plugin: use url instead of real_url
Fixes #414 and avoid usage of redirector in QRCode.
Also fixed a bug with URL encoding.
Diffstat (limited to 'tests/plugins/PlugQrcodeTest.php')
-rw-r--r-- | tests/plugins/PlugQrcodeTest.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/plugins/PlugQrcodeTest.php b/tests/plugins/PlugQrcodeTest.php index c749fa86..86dc7f29 100644 --- a/tests/plugins/PlugQrcodeTest.php +++ b/tests/plugins/PlugQrcodeTest.php | |||
@@ -30,7 +30,7 @@ class PlugQrcodeTest extends PHPUnit_Framework_TestCase | |||
30 | 'title' => $str, | 30 | 'title' => $str, |
31 | 'links' => array( | 31 | 'links' => array( |
32 | array( | 32 | array( |
33 | 'real_url' => $str, | 33 | 'url' => $str, |
34 | ) | 34 | ) |
35 | ) | 35 | ) |
36 | ); | 36 | ); |
@@ -39,7 +39,7 @@ class PlugQrcodeTest extends PHPUnit_Framework_TestCase | |||
39 | $link = $data['links'][0]; | 39 | $link = $data['links'][0]; |
40 | // data shouldn't be altered | 40 | // data shouldn't be altered |
41 | $this->assertEquals($str, $data['title']); | 41 | $this->assertEquals($str, $data['title']); |
42 | $this->assertEquals($str, $link['real_url']); | 42 | $this->assertEquals($str, $link['url']); |
43 | 43 | ||
44 | // plugin data | 44 | // plugin data |
45 | $this->assertEquals(1, count($link['link_plugin'])); | 45 | $this->assertEquals(1, count($link['link_plugin'])); |