Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Steur <tsteur@users.noreply.github.com>2019-07-22 05:55:05 +0300
committerGitHub <noreply@github.com>2019-07-22 05:55:05 +0300
commit8355f1f74ff41dc25e4c5430a5e669c705a17868 (patch)
tree62263b80aace30eed9fd572c8fee0444b3107ecc /plugins/CoreUpdater
parent9a95d4af8012fac2068bb8a0017829e14cea600a (diff)
Fix Integration Test (#14682)
Diffstat (limited to 'plugins/CoreUpdater')
-rw-r--r--plugins/CoreUpdater/tests/Integration/UpdateCommunicationTest.php12
1 files changed, 7 insertions, 5 deletions
diff --git a/plugins/CoreUpdater/tests/Integration/UpdateCommunicationTest.php b/plugins/CoreUpdater/tests/Integration/UpdateCommunicationTest.php
index e1486b5ab0..2e2b883982 100644
--- a/plugins/CoreUpdater/tests/Integration/UpdateCommunicationTest.php
+++ b/plugins/CoreUpdater/tests/Integration/UpdateCommunicationTest.php
@@ -70,22 +70,23 @@ class UpdateCommunicationTest extends IntegrationTestCase
public function test_sendNotifications_shouldSentCorrectEmail()
{
$rootUrl = Fixture::getTestRootUrl();
+ $rootUrlEscaped = str_replace(array(':', '/'), array('&#x3A;', '&#x2F;'), $rootUrl);
$message = "<p>ScheduledReports_EmailHello</p>
<p>CoreUpdater_ThereIsNewVersionAvailableForUpdate</p>
<p>CoreUpdater_YouCanUpgradeAutomaticallyOrDownloadPackage<br/>
-{$rootUrl}index.php?module=CoreUpdater&action=newVersionAvailable
+<a href=\"".$rootUrlEscaped."index.php?module=CoreUpdater&action=newVersionAvailable\">".$rootUrl."index.php?module=CoreUpdater&action=newVersionAvailable</a>
</p>
<p>
CoreUpdater_ViewVersionChangelog
<br/>
- https://matomo.org/changelog/matomo-33-0-0/
+ <a href=\"https&#x3A;&#x2F;&#x2F;matomo.org&#x2F;changelog&#x2F;matomo-33-0-0&#x2F;\">https://matomo.org/changelog/matomo-33-0-0/</a>
</p>
<p>CoreUpdater_ReceiveEmailBecauseIsSuperUser</p>
-<p>CoreUpdater_FeedbackRequest<br/>https://matomo.org/contact/</p>
+<p>CoreUpdater_FeedbackRequest<br/><a href=\"https://matomo.org/contact/\">https://matomo.org/contact/</a></p>
";
$this->assertEmailForVersion('33.0.0', $message);
@@ -94,17 +95,18 @@ class UpdateCommunicationTest extends IntegrationTestCase
public function test_sendNotifications_shouldNotIncludeChangelogIfNotMajorVersionUpdate()
{
$rootUrl = Fixture::getTestRootUrl();
+ $rootUrlEscaped = str_replace(array(':', '/'), array('&#x3A;', '&#x2F;'), $rootUrl);
$message = "<p>ScheduledReports_EmailHello</p>
<p>CoreUpdater_ThereIsNewVersionAvailableForUpdate</p>
<p>CoreUpdater_YouCanUpgradeAutomaticallyOrDownloadPackage<br/>
-{$rootUrl}index.php?module=CoreUpdater&action=newVersionAvailable
+<a href=\"".$rootUrlEscaped."index.php?module=CoreUpdater&action=newVersionAvailable\">".$rootUrl."index.php?module=CoreUpdater&action=newVersionAvailable</a>
</p>
<p>CoreUpdater_ReceiveEmailBecauseIsSuperUser</p>
-<p>CoreUpdater_FeedbackRequest<br/>https://matomo.org/contact/</p>
+<p>CoreUpdater_FeedbackRequest<br/><a href=\"https://matomo.org/contact/\">https://matomo.org/contact/</a></p>
";
$this->assertEmailForVersion('33.0.0-b1', $message);