diff options
author | diosmosis <benaka@piwik.pro> | 2015-09-22 11:22:13 +0300 |
---|---|---|
committer | diosmosis <benaka@piwik.pro> | 2015-10-27 07:46:24 +0300 |
commit | 4b79d4171a4c9179591156feda167b91cd18c49a (patch) | |
tree | 183da3b5c97f38aa034a7d809d3efce3ed0934d5 /plugins/CoreUpdater | |
parent | ac4245ff272f9d7e6f0804db6abe6b53eeff36a9 (diff) |
Fixing integration tests.
Diffstat (limited to 'plugins/CoreUpdater')
-rw-r--r-- | plugins/CoreUpdater/Test/Integration/UpdateCommunicationTest.php | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/plugins/CoreUpdater/Test/Integration/UpdateCommunicationTest.php b/plugins/CoreUpdater/Test/Integration/UpdateCommunicationTest.php index 156138d770..d43e11ebf4 100644 --- a/plugins/CoreUpdater/Test/Integration/UpdateCommunicationTest.php +++ b/plugins/CoreUpdater/Test/Integration/UpdateCommunicationTest.php @@ -11,6 +11,7 @@ namespace Piwik\Plugins\CoreUpdater\Test; use Piwik\Config; use Piwik\Option; use Piwik\Plugins\CoreUpdater\UpdateCommunication; +use Piwik\Tests\Framework\Fixture; use Piwik\UpdateCheck; use Piwik\Version; use Piwik\Tests\Framework\TestCase\IntegrationTestCase; @@ -67,33 +68,35 @@ class UpdateCommunicationTest extends IntegrationTestCase public function test_sendNotifications_shouldSentCorrectEmail() { - $message = 'ScheduledReports_EmailHello + $rootUrl = Fixture::getTestRootUrl(); + $message = "ScheduledReports_EmailHello CoreUpdater_ThereIsNewVersionAvailableForUpdate CoreUpdater_YouCanUpgradeAutomaticallyOrDownloadPackage -http://localhost/tests/PHPUnit/proxy/index.php?module=CoreUpdater&action=newVersionAvailable +{$rootUrl}index.php?module=CoreUpdater&action=newVersionAvailable CoreUpdater_ViewVersionChangelog http://piwik.org/changelog/piwik-33-0-0/ CoreUpdater_FeedbackRequest -http://piwik.org/contact/'; +http://piwik.org/contact/"; $this->assertEmailForVersion('33.0.0', $message); } public function test_sendNotifications_shouldNotIncludeChangelogIfNotMajorVersionUpdate() { - $message = 'ScheduledReports_EmailHello + $rootUrl = Fixture::getTestRootUrl(); + $message = "ScheduledReports_EmailHello CoreUpdater_ThereIsNewVersionAvailableForUpdate CoreUpdater_YouCanUpgradeAutomaticallyOrDownloadPackage -http://localhost/tests/PHPUnit/proxy/index.php?module=CoreUpdater&action=newVersionAvailable +{$rootUrl}index.php?module=CoreUpdater&action=newVersionAvailable CoreUpdater_FeedbackRequest -http://piwik.org/contact/'; +http://piwik.org/contact/"; $this->assertEmailForVersion('33.0.0-b1', $message); } |