diff options
Diffstat (limited to 'tests/PluginManagerTest.php')
-rw-r--r-- | tests/PluginManagerTest.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/PluginManagerTest.php b/tests/PluginManagerTest.php index 3018999c..efef5e87 100644 --- a/tests/PluginManagerTest.php +++ b/tests/PluginManagerTest.php | |||
@@ -1,4 +1,5 @@ | |||
1 | <?php | 1 | <?php |
2 | |||
2 | namespace Shaarli\Plugin; | 3 | namespace Shaarli\Plugin; |
3 | 4 | ||
4 | use Shaarli\Config\ConfigManager; | 5 | use Shaarli\Config\ConfigManager; |
@@ -6,7 +7,7 @@ use Shaarli\Config\ConfigManager; | |||
6 | /** | 7 | /** |
7 | * Unit tests for Plugins | 8 | * Unit tests for Plugins |
8 | */ | 9 | */ |
9 | class PluginManagerTest extends \PHPUnit\Framework\TestCase | 10 | class PluginManagerTest extends \Shaarli\TestCase |
10 | { | 11 | { |
11 | /** | 12 | /** |
12 | * Path to tests plugin. | 13 | * Path to tests plugin. |
@@ -81,8 +82,8 @@ class PluginManagerTest extends \PHPUnit\Framework\TestCase | |||
81 | $data = []; | 82 | $data = []; |
82 | $this->pluginManager->executeHooks('error', $data); | 83 | $this->pluginManager->executeHooks('error', $data); |
83 | 84 | ||
84 | $this->assertSame( | 85 | $this->assertRegExp( |
85 | 'test [plugin incompatibility]: Class \'Unknown\' not found', | 86 | '/test \[plugin incompatibility\]: Class [\'"]Unknown[\'"] not found/', |
86 | $this->pluginManager->getErrors()[0] | 87 | $this->pluginManager->getErrors()[0] |
87 | ); | 88 | ); |
88 | } | 89 | } |