39 lines
1.1 KiB
Plaintext
39 lines
1.1 KiB
Plaintext
--TEST--
|
|
Updating a dev package selects its newest version but no providers
|
|
--COMPOSER--
|
|
{
|
|
"repositories": [
|
|
{
|
|
"type": "package",
|
|
"package": [
|
|
{
|
|
"name": "a/replacer", "version": "dev-master",
|
|
"source": { "reference": "wrong", "url": "https://example.org", "type": "git" },
|
|
"replace": {
|
|
"a/installed": "dev-master"
|
|
}
|
|
},
|
|
{
|
|
"name": "a/installed", "version": "dev-master",
|
|
"source": { "reference": "newref", "url": "https://example.org", "type": "git" }
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"require": {
|
|
"a/installed": "dev-master"
|
|
},
|
|
"minimum-stability": "dev"
|
|
}
|
|
--INSTALLED--
|
|
[
|
|
{
|
|
"name": "a/installed", "version": "dev-master",
|
|
"source": { "reference": "oldref", "url": "https://example.org", "type": "git" }
|
|
}
|
|
]
|
|
--RUN--
|
|
update
|
|
--EXPECT--
|
|
Upgrading a/installed (dev-master oldref => dev-master newref)
|