2012-08-27 10:03:07 +00:00
|
|
|
--TEST--
|
|
|
|
Updating a dev package selects its newest version but no providers
|
|
|
|
--COMPOSER--
|
|
|
|
{
|
|
|
|
"repositories": [
|
|
|
|
{
|
|
|
|
"type": "package",
|
|
|
|
"package": [
|
|
|
|
{
|
|
|
|
"name": "a/replacer", "version": "dev-master",
|
2022-10-11 14:51:47 +00:00
|
|
|
"source": { "reference": "wrong", "url": "https://example.org", "type": "git" },
|
2012-08-27 10:03:07 +00:00
|
|
|
"replace": {
|
|
|
|
"a/installed": "dev-master"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "a/installed", "version": "dev-master",
|
2022-10-11 14:51:47 +00:00
|
|
|
"source": { "reference": "newref", "url": "https://example.org", "type": "git" }
|
2012-08-27 10:03:07 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"require": {
|
|
|
|
"a/installed": "dev-master"
|
|
|
|
},
|
|
|
|
"minimum-stability": "dev"
|
|
|
|
}
|
|
|
|
--INSTALLED--
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"name": "a/installed", "version": "dev-master",
|
2022-10-11 14:51:47 +00:00
|
|
|
"source": { "reference": "oldref", "url": "https://example.org", "type": "git" }
|
2012-08-27 10:03:07 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
--RUN--
|
|
|
|
update
|
|
|
|
--EXPECT--
|
2020-02-11 12:43:38 +00:00
|
|
|
Upgrading a/installed (dev-master oldref => dev-master newref)
|