diff options
author | Thomas Steur <tsteur@users.noreply.github.com> | 2019-07-22 05:55:05 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-22 05:55:05 +0300 |
commit | 8355f1f74ff41dc25e4c5430a5e669c705a17868 (patch) | |
tree | 62263b80aace30eed9fd572c8fee0444b3107ecc /plugins/CoreUpdater | |
parent | 9a95d4af8012fac2068bb8a0017829e14cea600a (diff) |
Fix Integration Test (#14682)
Diffstat (limited to 'plugins/CoreUpdater')
-rw-r--r-- | plugins/CoreUpdater/tests/Integration/UpdateCommunicationTest.php | 12 |
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(':', '/'), $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://matomo.org/changelog/matomo-33-0-0/\">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(':', '/'), $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); |