2021-02-15 13:07:58 +00:00
--TEST--
Checks that package versions in InstalledVersions are correct on initial install. Noteworthy things:
2021-02-17 22:21:18 +00:00
- PluginA is not yet found at the moment where it is first initialized. This is a quirk which we are unlikely to fix
- PluginB is not yet found at the moment where it is first initialized, but it finds PluginA which was installed before
2021-02-24 13:27:09 +00:00
- Local dependencies (symfony/*) always show the Composer-bundled version
2021-02-12 10:12:42 +00:00
--RUN--
update
--EXPECT--
> Hooks::preUpdate
2021-12-07 11:57:44 +00:00
!!PreUpdate:["composer/ca-bundle","composer/composer","composer/metadata-minifier","composer/pcre","composer/semver","composer/spdx-licenses","composer/xdebug-handler","justinrainbow/json-schema","psr/log","react/promise","seld/jsonlint","seld/phar-utils","symfony/console","symfony/debug","symfony/filesystem","symfony/finder","symfony/polyfill-ctype","symfony/polyfill-mbstring","symfony/process"]
2021-02-12 10:12:42 +00:00
!!Versions:console:%[2-8]\.\d+\.\d+.0%;process:%[2-8]\.\d+\.\d+.0%;filesystem:%[2-8]\.\d+\.\d+.0%
Loading composer repositories with package information
2022-03-09 20:39:18 +00:00
%((Info|Warning) from .*\n)?%Updating dependencies
2021-02-12 10:12:42 +00:00
Lock file operations: 6 installs, 0 updates, 0 removals
- Locking plugin/a (1.1.1)
- Locking plugin/b (2.2.2)
- Locking symfony/console (99999.1.2)
- Locking symfony/filesystem (%v?[2-8]\.\d+\.\d+%)
- Locking symfony/polyfill-ctype (%v?[1-8]\.\d+\.\d+%)
- Locking symfony/process (12345.1.2)
Writing lock file
Installing dependencies from lock file (including require-dev)
2022-03-29 19:27:43 +00:00
Package operations: 6 installs, 0 updates, 0 removals%(\nAs there is no 'unzip' nor '7z' command installed zip files are being unpacked using the PHP zip extension.\nThis may cause invalid reports of corrupted archives. Besides, any UNIX permissions \(e.g. executable\) defined in the archives will be lost.\nInstalling 'unzip' or '7z' \(21\.01\+\) may remediate them.)?%
2021-02-12 10:12:42 +00:00
- Downloading symfony/polyfill-ctype (%v?[1-8]\.\d+\.\d+%)
- Downloading symfony/filesystem (%v?[2-8]\.\d+\.\d+%)
- Installing symfony/console (99999.1.2): Symlinking from symfony-console
- Installing plugin/a (1.1.1): Symlinking from plugin-a
2021-12-07 11:57:44 +00:00
!!PluginAInit["composer/ca-bundle","composer/composer","composer/metadata-minifier","composer/pcre","composer/semver","composer/spdx-licenses","composer/xdebug-handler","justinrainbow/json-schema","psr/log","react/promise","seld/jsonlint","seld/phar-utils","symfony/console","symfony/debug","symfony/filesystem","symfony/finder","symfony/polyfill-ctype","symfony/polyfill-mbstring","symfony/process","root/pkg"]
2021-02-17 22:21:18 +00:00
!!PluginA:null
2021-02-15 13:07:58 +00:00
!!PluginB:null
2021-02-24 13:27:09 +00:00
!!Versions:console:%[2-8]\.\d+\.\d+.0%;process:%[2-8]\.\d+\.\d+.0%;filesystem:%[2-8]\.\d+\.\d+.0%
2021-02-12 10:12:42 +00:00
- Installing plugin/b (2.2.2): Symlinking from plugin-b
2021-12-07 11:57:44 +00:00
!!PluginBInit["composer/ca-bundle","composer/composer","composer/metadata-minifier","composer/pcre","composer/semver","composer/spdx-licenses","composer/xdebug-handler","justinrainbow/json-schema","psr/log","react/promise","seld/jsonlint","seld/phar-utils","symfony/console","symfony/debug","symfony/filesystem","symfony/finder","symfony/polyfill-ctype","symfony/polyfill-mbstring","symfony/process","plugin/a","root/pkg"]
2021-02-15 13:07:58 +00:00
!!PluginA:1.1.1.0
2021-02-17 22:21:18 +00:00
!!PluginB:null
2021-02-24 13:27:09 +00:00
!!Versions:console:%[2-8]\.\d+\.\d+.0%;process:%[2-8]\.\d+\.\d+.0%;filesystem:%[2-8]\.\d+\.\d+.0%
2021-02-12 10:12:42 +00:00
- Installing symfony/polyfill-ctype (%v?[1-8]\.\d+\.\d+%): Extracting archive
- Installing symfony/filesystem (%v?[2-8]\.\d+\.\d+%): Extracting archive
- Installing symfony/process (12345.1.2): Symlinking from symfony-process
Generating autoload files
2 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
> Hooks::postUpdate
2021-12-07 11:57:44 +00:00
!!PostUpdate:["composer/ca-bundle","composer/composer","composer/metadata-minifier","composer/pcre","composer/semver","composer/spdx-licenses","composer/xdebug-handler","justinrainbow/json-schema","psr/log","react/promise","seld/jsonlint","seld/phar-utils","symfony/console","symfony/debug","symfony/filesystem","symfony/finder","symfony/polyfill-ctype","symfony/polyfill-mbstring","symfony/process","plugin/a","plugin/b","root/pkg"]
2021-02-24 13:27:09 +00:00
!!Versions:console:%[2-8]\.\d+\.\d+.0%;process:%[2-8]\.\d+\.\d+.0%;filesystem:%[2-8]\.\d+\.\d+.0%
2021-02-12 10:12:42 +00:00
--EXPECT-EXIT-CODE--
0