51 lines
4.5 KiB
Plaintext
51 lines
4.5 KiB
Plaintext
--TEST--
|
|
Checks that package versions in InstalledVersions are correct during an upgrade. Noteworthy things:
|
|
|
|
- PluginA sees the old version of PluginB until that upgrade happened
|
|
- PluginA/PluginB see an old version of themselves as the plugin is marked install InstalledVersions::reload() but that is used as fallback vs what is in vendor dir. This is a quirk which we are unlikely to fix
|
|
- Local dependencies (symfony/*) always show the local version over the Composer-bundled version, and show the correct new version as soon as they are done upgrading
|
|
--RUN--
|
|
update
|
|
--EXPECT--
|
|
!!PluginA:1.1.1.0["plugin/a","plugin/b","root/pkg","symfony/console","symfony/filesystem","symfony/polyfill-ctype","symfony/process","composer/ca-bundle","composer/composer","composer/semver","composer/spdx-licenses","composer/xdebug-handler","justinrainbow/json-schema","psr/log","react/promise","seld/jsonlint","seld/phar-utils","symfony/debug","symfony/finder","symfony/polyfill-mbstring"]
|
|
!!PluginB:2.2.2.0
|
|
!!Versions:console:99999.1.2.0;process:12345.1.2.0;filesystem:2.8.2.0
|
|
!!PluginB:2.2.2.0["plugin/a","plugin/b","root/pkg","symfony/console","symfony/filesystem","symfony/polyfill-ctype","symfony/process","composer/ca-bundle","composer/composer","composer/semver","composer/spdx-licenses","composer/xdebug-handler","justinrainbow/json-schema","psr/log","react/promise","seld/jsonlint","seld/phar-utils","symfony/debug","symfony/finder","symfony/polyfill-mbstring"]
|
|
!!PluginA:1.1.1.0
|
|
!!Versions:console:99999.1.2.0;process:12345.1.2.0;filesystem:2.8.2.0%(\n> Hooks::preUpdate)?%
|
|
!!PreUpdate:["plugin/a","plugin/b","root/pkg","symfony/console","symfony/filesystem","symfony/polyfill-ctype","symfony/process","composer/ca-bundle","composer/composer","composer/semver","composer/spdx-licenses","composer/xdebug-handler","justinrainbow/json-schema","psr/log","react/promise","seld/jsonlint","seld/phar-utils","symfony/debug","symfony/finder","symfony/polyfill-mbstring"]
|
|
!!Versions:console:99999.1.2.0;process:12345.1.2.0;filesystem:2.8.2.0%(\n> Hooks::preUpdate)?%
|
|
Loading composer repositories with package information
|
|
Updating dependencies
|
|
Lock file operations: 0 installs, 5 updates, 0 removals
|
|
- Upgrading plugin/a (1.1.1 => 1.1.2)
|
|
- Upgrading plugin/b (2.2.2 => 2.2.3)
|
|
- Upgrading symfony/console (99999.1.2 => 99999.1.3)
|
|
- Upgrading symfony/filesystem (v2.8.2 => %v?[2-8]\.\d+\.\d+%)
|
|
- Upgrading symfony/process (12345.1.2 => 12345.1.3)
|
|
Writing lock file
|
|
Installing dependencies from lock file (including require-dev)
|
|
Package operations: 0 installs, 5 updates, 0 removals
|
|
- Upgrading symfony/console (99999.1.2 => 99999.1.3): Mirroring from symfony-console
|
|
- Upgrading plugin/a (1.1.1 => 1.1.2): Mirroring from plugin-a
|
|
!!PluginA:1.1.1.0["plugin/a","plugin/b","root/pkg","symfony/console","symfony/filesystem","symfony/polyfill-ctype","symfony/process","composer/ca-bundle","composer/composer","composer/semver","composer/spdx-licenses","composer/xdebug-handler","justinrainbow/json-schema","psr/log","react/promise","seld/jsonlint","seld/phar-utils","symfony/debug","symfony/finder","symfony/polyfill-mbstring"]
|
|
!!PluginB:2.2.2.0
|
|
!!Versions:console:99999.1.3.0;process:12345.1.2.0;filesystem:%[2-8]\.\d+\.\d+.0%
|
|
- Upgrading plugin/b (2.2.2 => 2.2.3): Mirroring from plugin-b
|
|
!!PluginB:2.2.2.0["plugin/a","plugin/b","root/pkg","symfony/console","symfony/filesystem","symfony/polyfill-ctype","symfony/process","composer/ca-bundle","composer/composer","composer/semver","composer/spdx-licenses","composer/xdebug-handler","justinrainbow/json-schema","psr/log","react/promise","seld/jsonlint","seld/phar-utils","symfony/debug","symfony/finder","symfony/polyfill-mbstring"]
|
|
!!PluginA:1.1.2.0
|
|
!!Versions:console:99999.1.3.0;process:12345.1.2.0;filesystem:%[2-8]\.\d+\.\d+.0%
|
|
- Upgrading symfony/filesystem (v2.8.2 => %v?[2-8]\.\d+\.\d+%)
|
|
- Upgrading symfony/process (12345.1.2 => 12345.1.3): Mirroring 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
|
|
!!PostUpdate:["plugin/a","plugin/b","root/pkg","symfony/console","symfony/filesystem","symfony/polyfill-ctype","symfony/process","composer/ca-bundle","composer/composer","composer/semver","composer/spdx-licenses","composer/xdebug-handler","justinrainbow/json-schema","psr/log","react/promise","seld/jsonlint","seld/phar-utils","symfony/debug","symfony/finder","symfony/polyfill-mbstring"]
|
|
!!Versions:console:99999.1.3.0;process:12345.1.3.0;filesystem:%[2-8]\.\d+\.\d+.0%
|
|
!!PluginA:1.1.2.0
|
|
!!PluginB:2.2.3.0
|
|
|
|
--EXPECT-EXIT-CODE--
|
|
0
|