55 lines
1.9 KiB
Plaintext
55 lines
1.9 KiB
Plaintext
--TEST--
|
|
Downgrading from unstable to more stable package should work even if already installed
|
|
--COMPOSER--
|
|
{
|
|
"repositories": [
|
|
{
|
|
"type": "package",
|
|
"package": [
|
|
{
|
|
"name": "a/a", "version": "dev-master",
|
|
"source": { "reference": "abcd", "url": "https://example.org", "type": "git" },
|
|
"default-branch": true
|
|
},
|
|
{
|
|
"name": "a/a", "version": "1.0.0",
|
|
"source": { "reference": "1.0.0", "url": "https://example.org", "type": "git" },
|
|
"dist": { "reference": "1.0.0", "url": "https://example.org", "type": "zip", "shasum": "" }
|
|
},
|
|
{
|
|
"name": "b/b", "version": "dev-master",
|
|
"source": { "reference": "abcd", "url": "https://example.org", "type": "git" },
|
|
"default-branch": true
|
|
},
|
|
{
|
|
"name": "b/b", "version": "1.0.0",
|
|
"source": { "reference": "1.0.0", "url": "https://example.org", "type": "git" },
|
|
"dist": { "reference": "1.0.0", "url": "https://example.org", "type": "zip", "shasum": "" }
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"require": {
|
|
"a/a": "*",
|
|
"b/b": "*@dev"
|
|
}
|
|
}
|
|
--INSTALLED--
|
|
[
|
|
{
|
|
"name": "a/a", "version": "dev-master",
|
|
"source": { "reference": "abcd", "url": "https://example.org", "type": "git" },
|
|
"default-branch": true
|
|
},
|
|
{
|
|
"name": "b/b", "version": "dev-master",
|
|
"source": { "reference": "abcd", "url": "https://example.org", "type": "git" },
|
|
"default-branch": true
|
|
}
|
|
]
|
|
--RUN--
|
|
update
|
|
--EXPECT--
|
|
Marking a/a (9999999-dev abcd) as uninstalled, alias of a/a (dev-master abcd)
|
|
Downgrading a/a (dev-master abcd => 1.0.0)
|