You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
58 lines
1.3 KiB
Plaintext
58 lines
1.3 KiB
Plaintext
9 years ago
|
--TEST--
|
||
|
Converting from one VCS type to another (including an URL change) should update the lock file.
|
||
|
--COMPOSER--
|
||
|
{
|
||
|
"repositories": [
|
||
|
{
|
||
|
"type": "package",
|
||
|
"package": [
|
||
|
{
|
||
|
"name": "a/a", "version": "1.0.0",
|
||
|
"source": { "reference": "new-git-ref", "type": "git", "url": "new-git-url" }
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
],
|
||
|
"require": {
|
||
|
"a/a": "1.0.0"
|
||
|
}
|
||
|
}
|
||
|
--INSTALLED--
|
||
|
[
|
||
|
{
|
||
|
"name": "a/a", "version": "1.0.0",
|
||
|
"source": { "reference": "old-hg-ref", "type": "hg", "url": "old-hg-url" }
|
||
|
}
|
||
|
]
|
||
|
--LOCK--
|
||
|
{
|
||
|
"packages": [
|
||
|
{
|
||
|
"name": "a/a", "version": "1.0.0",
|
||
|
"source": { "reference": "old-hg-ref", "type": "hg", "url": "old-hg-url" }
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
--RUN--
|
||
|
update
|
||
|
--EXPECT-LOCK--
|
||
|
{
|
||
|
"packages": [
|
||
|
{
|
||
|
"name": "a/a", "version": "1.0.0",
|
||
|
"source": { "reference": "new-git-ref", "type": "git", "url": "new-git-url" },
|
||
|
"type": "library"
|
||
|
}
|
||
|
],
|
||
|
"packages-dev": [],
|
||
|
"aliases": [],
|
||
|
"minimum-stability": "stable",
|
||
|
"stability-flags": [],
|
||
|
"prefer-stable": false,
|
||
|
"prefer-lowest": false,
|
||
|
"platform": [],
|
||
|
"platform-dev": []
|
||
|
}
|
||
|
--EXPECT--
|
||
|
|