-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix loading of root aliases on path repo packages when doing partial …
- Loading branch information
Showing
2 changed files
with
57 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
53 changes: 53 additions & 0 deletions
53
tests/Composer/Test/Fixtures/installer/partial-update-loads-root-aliases-for-path-repos.test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
--TEST-- | ||
Partial updates always load root aliases even for path repos which are symlinked but not marked as updating | ||
|
||
--COMPOSER-- | ||
{ | ||
"repositories": [ | ||
{ | ||
"type": "path", | ||
"url": "Fixtures/functional/installed-versions/plugin-a" | ||
}, | ||
{ | ||
"type": "package", | ||
"package": [ | ||
{ "name": "c/new", "version": "2.0.0", "require": { "plugin/a": "2.*" } } | ||
] | ||
} | ||
], | ||
"require": { | ||
"plugin/a": "1.1.1 as 2.0.0", | ||
"c/new": "*" | ||
} | ||
} | ||
|
||
--LOCK-- | ||
{ | ||
"packages": [ | ||
{ "name": "plugin/a", "version": "1.0.0", "dist": { "type": "path", "url": "..." }, "transport-options": {}, "require": { "symfony/console": "1.*" } }, | ||
{ "name": "symfony/console", "version": "1.0.0" } | ||
], | ||
"packages-dev": [], | ||
"aliases": [], | ||
"minimum-stability": "stable", | ||
"stability-flags": { | ||
}, | ||
"prefer-stable": false, | ||
"prefer-lowest": false, | ||
"platform": [], | ||
"platform-dev": [] | ||
} | ||
|
||
--INSTALLED-- | ||
[ | ||
{ "name": "plugin/a", "version": "1.1.1", "require": { "symfony/console": "2.0.*" } }, | ||
{ "name": "symfony/console", "version": "1.0.0" } | ||
] | ||
|
||
--RUN-- | ||
update c/new -v | ||
|
||
--EXPECT-- | ||
Upgrading plugin/a (1.1.1 => 1.1.1 b133081) | ||
Marking plugin/a (2.0.0) as installed, alias of plugin/a (1.1.1) | ||
Installing c/new (2.0.0) |