diff options
author | diosmosis <diosmosis@users.noreply.github.com> | 2020-09-19 15:55:30 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-19 15:55:30 +0300 |
commit | 62fcad39c4f0c5d8c0d75b2456a4ac07f7b106a5 (patch) | |
tree | c81cdbc3dfc266f311d91343262f7a9fb552deca /tests/PHPUnit/Fixtures | |
parent | 43ddd49a1eab9568701a64352cbda2d754d17715 (diff) |
Fix one click update test (#16445)
* use lower major version in oneclickupdate test
* use correcct submodule
* update screenshots
Diffstat (limited to 'tests/PHPUnit/Fixtures')
-rw-r--r-- | tests/PHPUnit/Fixtures/LatestStableInstall/GitCommitReleaseChannel.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/PHPUnit/Fixtures/LatestStableInstall/GitCommitReleaseChannel.php b/tests/PHPUnit/Fixtures/LatestStableInstall/GitCommitReleaseChannel.php index 67e7a2b546..edac9a16a5 100644 --- a/tests/PHPUnit/Fixtures/LatestStableInstall/GitCommitReleaseChannel.php +++ b/tests/PHPUnit/Fixtures/LatestStableInstall/GitCommitReleaseChannel.php @@ -5,6 +5,7 @@ namespace Piwik\Plugins\CoreUpdater\ReleaseChannel; use Piwik\UpdateCheck\ReleaseChannel; use Piwik\Url; +use Piwik\Version; class GitCommitReleaseChannel extends ReleaseChannel { @@ -20,7 +21,10 @@ class GitCommitReleaseChannel extends ReleaseChannel public function getUrlToCheckForLatestAvailableVersion() { - return 'http://' . Url::getHost(false) . '/tests/resources/one-click-update-version.php'; + $majorVersion = (int) Version::VERSION; + $majorVersion += 1; + + return 'http://' . Url::getHost(false) . '/tests/resources/one-click-update-version.php?v=' . $majorVersion; } public function getDownloadUrlWithoutScheme($version) |