diff options
author | Peter Zhang <peter@innocraft.com> | 2022-01-31 12:47:11 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-31 12:47:11 +0300 |
commit | ea3818a244d3a9b49d5743ebd7dedcd5d0004930 (patch) | |
tree | e466bc5ecb4f57ae3b9a9a8944198bc9f3bc8e63 /tests/PHPUnit/Fixtures | |
parent | ec58ab4606cbc6c7f7c3a7aa7f1e9cc5a88e5dfb (diff) |
add core updater with file access check (#18594)
* add core updater with file access check
add core updater with file access check
* update screen shot
update screen shot
* Update en.json
update to multiple support
* Update plugins/CoreUpdater/Updater.php
Co-authored-by: Justin Velluppillai <justin@innocraft.com>
* Update plugins/CoreUpdater/Updater.php
Co-authored-by: Justin Velluppillai <justin@innocraft.com>
* Update en.json
* Update en.json
update wording
* Adds update test
* fix branch before merge
Co-authored-by: Justin Velluppillai <justin@innocraft.com>
Co-authored-by: sgiehl <stefan@matomo.org>
Diffstat (limited to 'tests/PHPUnit/Fixtures')
-rw-r--r-- | tests/PHPUnit/Fixtures/LatestStableInstall.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/PHPUnit/Fixtures/LatestStableInstall.php b/tests/PHPUnit/Fixtures/LatestStableInstall.php index 515e7c9204..4c15b8e847 100644 --- a/tests/PHPUnit/Fixtures/LatestStableInstall.php +++ b/tests/PHPUnit/Fixtures/LatestStableInstall.php @@ -79,6 +79,16 @@ class LatestStableInstall extends Fixture } shell_exec('mv "' . $installSubdirectory . '"/piwik/* "' . $installSubdirectory . '"'); + + /** + * The additional permissions check was added within Matomo 4.8 development. Therefor the OneClickUpdate UI tests + * would not already perform this check, as it uses the latest stable version to perform an update the the git checkout. + * As soon as 4.8 has been release, which should include the permission check, this won't be needed anymore. + * + * @todo remove this after Matomo 4.8 has been released + */ + shell_exec('curl https://raw.githubusercontent.com/matomo-org/matomo/4.x-dev/plugins/CoreUpdater/Updater.php > ' . $installSubdirectory . '/plugins/CoreUpdater/Updater.php'); + shell_exec('curl https://raw.githubusercontent.com/matomo-org/matomo/4.x-dev/plugins/CoreUpdater/lang/en.json > ' . $installSubdirectory . '/plugins/CoreUpdater/lang/en.json'); } private function installSubdirectoryInstall() |