2013-01-07 19:27:52 +00:00
|
|
|
--TEST--
|
|
|
|
Updating a dev package for new reference updates the url and reference
|
|
|
|
--COMPOSER--
|
|
|
|
{
|
|
|
|
"repositories": [
|
|
|
|
{
|
|
|
|
"type": "package",
|
|
|
|
"package": [
|
|
|
|
{
|
|
|
|
"name": "a/a", "version": "dev-master",
|
|
|
|
"source": { "reference": "newref", "url": "newurl", "type": "git" },
|
|
|
|
"dist": { "reference": "newref", "url": "newurl", "type": "zip", "shasum": "" }
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"minimum-stability": "dev",
|
|
|
|
"require": {
|
|
|
|
"a/a": "dev-master"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
--LOCK--
|
|
|
|
{
|
|
|
|
"packages": [
|
|
|
|
{
|
|
|
|
"name": "a/a", "version": "dev-master",
|
|
|
|
"source": { "reference": "oldref", "url": "oldurl", "type": "git" },
|
|
|
|
"dist": { "reference": "oldref", "url": "oldurl", "type": "zip", "shasum": "" }
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"packages-dev": null,
|
|
|
|
"aliases": [],
|
|
|
|
"minimum-stability": "dev",
|
2014-07-07 17:51:00 +00:00
|
|
|
"stability-flags": {"a/a":20},
|
|
|
|
"prefer-stable": false
|
2013-01-07 19:27:52 +00:00
|
|
|
}
|
|
|
|
--INSTALLED--
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"name": "a/a", "version": "dev-master",
|
|
|
|
"source": { "reference": "oldref", "url": "oldurl", "type": "git" },
|
|
|
|
"dist": { "reference": "oldref", "url": "oldurl", "type": "zip", "shasum": "" }
|
|
|
|
}
|
|
|
|
]
|
|
|
|
--RUN--
|
|
|
|
update
|
|
|
|
--EXPECT-LOCK--
|
|
|
|
{
|
|
|
|
"packages": [
|
|
|
|
{
|
|
|
|
"name": "a/a", "version": "dev-master",
|
|
|
|
"type": "library",
|
|
|
|
"source": { "reference": "newref", "url": "newurl", "type": "git" },
|
2014-10-03 12:48:28 +00:00
|
|
|
"dist": { "reference": "newref", "url": "newurl", "type": "zip", "shasum": "" },
|
|
|
|
"abandoned": false
|
2013-01-07 19:27:52 +00:00
|
|
|
}
|
|
|
|
],
|
2013-03-07 08:40:22 +00:00
|
|
|
"packages-dev": [],
|
2013-01-07 19:27:52 +00:00
|
|
|
"aliases": [],
|
|
|
|
"minimum-stability": "dev",
|
2013-03-03 19:05:46 +00:00
|
|
|
"stability-flags": {"a/a":20},
|
2014-07-07 17:51:00 +00:00
|
|
|
"prefer-stable": false,
|
2013-03-03 19:05:46 +00:00
|
|
|
"platform": [],
|
|
|
|
"platform-dev": []
|
2013-01-07 19:27:52 +00:00
|
|
|
}
|
|
|
|
--EXPECT--
|
|
|
|
Updating a/a (dev-master oldref) to a/a (dev-master newref)
|