aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/plugins/PluginIssoTest.php
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2020-09-29 14:41:40 +0200
committerArthurHoaro <arthur@hoa.ro>2020-09-29 18:57:20 +0200
commita5a9cf23acd1248585173aa32757d9720b5f2d62 (patch)
tree5b443e09fc0f84db0cb478cda0c88c10346b0843 /tests/plugins/PluginIssoTest.php
parent2b7a7bc928fb7fc171138e248d3aa1d86d5b62f9 (diff)
downloadShaarli-a5a9cf23acd1248585173aa32757d9720b5f2d62.tar.gz
Shaarli-a5a9cf23acd1248585173aa32757d9720b5f2d62.tar.zst
Shaarli-a5a9cf23acd1248585173aa32757d9720b5f2d62.zip
Compatibility with PHPUnit 9
Diffstat (limited to 'tests/plugins/PluginIssoTest.php')
-rw-r--r--tests/plugins/PluginIssoTest.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/plugins/PluginIssoTest.php b/tests/plugins/PluginIssoTest.php
index 2bbb93d2..16ecf357 100644
--- a/tests/plugins/PluginIssoTest.php
+++ b/tests/plugins/PluginIssoTest.php
@@ -2,10 +2,10 @@
2namespace Shaarli\Plugin\Isso; 2namespace Shaarli\Plugin\Isso;
3 3
4use DateTime; 4use DateTime;
5use PHPUnit\Framework\TestCase;
6use Shaarli\Bookmark\Bookmark; 5use Shaarli\Bookmark\Bookmark;
7use Shaarli\Config\ConfigManager; 6use Shaarli\Config\ConfigManager;
8use Shaarli\Plugin\PluginManager; 7use Shaarli\Plugin\PluginManager;
8use Shaarli\TestCase;
9 9
10require_once 'plugins/isso/isso.php'; 10require_once 'plugins/isso/isso.php';
11 11
@@ -116,8 +116,8 @@ class PluginIssoTest extends TestCase
116 116
117 $processed = hook_isso_render_linklist($data, $conf); 117 $processed = hook_isso_render_linklist($data, $conf);
118 // link_plugin should be added for the icon 118 // link_plugin should be added for the icon
119 $this->assertContains('<a href="/shaare/'. $short1 .'#isso-thread">', $processed['links'][0]['link_plugin'][0]); 119 $this->assertContainsPolyfill('<a href="/shaare/'. $short1 .'#isso-thread">', $processed['links'][0]['link_plugin'][0]);
120 $this->assertContains('<a href="/shaare/'. $short2 .'#isso-thread">', $processed['links'][1]['link_plugin'][0]); 120 $this->assertContainsPolyfill('<a href="/shaare/'. $short2 .'#isso-thread">', $processed['links'][1]['link_plugin'][0]);
121 } 121 }
122 122
123 /** 123 /**
@@ -146,7 +146,7 @@ class PluginIssoTest extends TestCase
146 $processed = hook_isso_render_linklist($data, $conf); 146 $processed = hook_isso_render_linklist($data, $conf);
147 147
148 // link_plugin should be added for the icon 148 // link_plugin should be added for the icon
149 $this->assertContains('<a href="/shaare/'. $short1 .'#isso-thread">', $processed['links'][0]['link_plugin'][0]); 149 $this->assertContainsPolyfill('<a href="/shaare/'. $short1 .'#isso-thread">', $processed['links'][0]['link_plugin'][0]);
150 } 150 }
151 151
152 /** 152 /**