diff options
author | Stefan Giehl <stefan@matomo.org> | 2021-01-04 14:39:26 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-04 14:39:26 +0300 |
commit | 6f60a5ebfa306e66055cf76d0f98d1b5f2f127be (patch) | |
tree | 4176761601c851b6ea1fd9bb6782f22bf9fb9899 /plugins/Marketplace | |
parent | f91c584528106dc782fa81818e93bdaac467efd4 (diff) |
fixes a failing test (#17038)
Diffstat (limited to 'plugins/Marketplace')
-rw-r--r-- | plugins/Marketplace/tests/Integration/UpdateCommunicationTest.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/Marketplace/tests/Integration/UpdateCommunicationTest.php b/plugins/Marketplace/tests/Integration/UpdateCommunicationTest.php index 3f9a2d83be..73ed18059f 100644 --- a/plugins/Marketplace/tests/Integration/UpdateCommunicationTest.php +++ b/plugins/Marketplace/tests/Integration/UpdateCommunicationTest.php @@ -15,7 +15,9 @@ use Piwik\Plugins\CoreUpdater\SystemSettings; use Piwik\Plugins\Marketplace\UpdateCommunication; use Piwik\Tests\Framework\Fixture; use Piwik\Tests\Framework\TestCase\IntegrationTestCase; +use Piwik\Twig; use Piwik\View; +use Twig\Environment; /** * @group Plugins @@ -118,6 +120,8 @@ class UpdateCommunicationTest extends IntegrationTestCase { $subject = 'CoreUpdater_NotificationSubjectAvailablePluginUpdate'; $rootUrl = Fixture::getTestRootUrl(); + $twig = new Twig(); + $message = "<p>ScheduledReports_EmailHello</p> <p>CoreUpdater_ThereIsNewPluginVersionAvailableForUpdate</p> @@ -130,7 +134,7 @@ class UpdateCommunicationTest extends IntegrationTestCase <p> CoreUpdater_NotificationClickToUpdatePlugins<br/> -<a href=\"{$rootUrl}index.php?module=CorePluginsAdmin&action=plugins\">{$rootUrl}index.php?module=CorePluginsAdmin&action=plugins</a> +<a href=\"".twig_escape_filter($twig->getTwigEnvironment(), $rootUrl, 'html_attr')."index.php?module=CorePluginsAdmin&action=plugins\">{$rootUrl}index.php?module=CorePluginsAdmin&action=plugins</a> </p> <p> |