X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=tests%2FPluginManagerTest.php;h=bbd2e142feb7b21f84f73869f4225e43e5c80c07;hb=ab58f2542072e6bf34acd862f6cfed84b33feb29;hp=3018999c81ec60e4f80a2bc4dc7478f815d6ed59;hpb=0d930454a2892715e691f9c7713e26a3bb4ee96c;p=github%2Fshaarli%2FShaarli.git diff --git a/tests/PluginManagerTest.php b/tests/PluginManagerTest.php index 3018999c..bbd2e142 100644 --- a/tests/PluginManagerTest.php +++ b/tests/PluginManagerTest.php @@ -6,7 +6,7 @@ use Shaarli\Config\ConfigManager; /** * Unit tests for Plugins */ -class PluginManagerTest extends \PHPUnit\Framework\TestCase +class PluginManagerTest extends \Shaarli\TestCase { /** * Path to tests plugin. @@ -81,8 +81,8 @@ class PluginManagerTest extends \PHPUnit\Framework\TestCase $data = []; $this->pluginManager->executeHooks('error', $data); - $this->assertSame( - 'test [plugin incompatibility]: Class \'Unknown\' not found', + $this->assertMatchesRegularExpression( + '/test \[plugin incompatibility\]: Class [\'"]Unknown[\'"] not found/', $this->pluginManager->getErrors()[0] ); }