1
0
Fork 0
composer/tests/Composer/Test/Fixtures/installer/updating-dev-updates-url-an...

69 lines
1.8 KiB
Plaintext
Raw Normal View History

--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": [],
"aliases": [],
"minimum-stability": "dev",
"stability-flags": {"a/a":20},
2014-12-13 22:56:15 +00:00
"prefer-stable": false,
"prefer-lowest": false
}
--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" },
"dist": { "reference": "newref", "url": "newurl", "type": "zip", "shasum": "" }
}
],
2013-03-07 08:40:22 +00:00
"packages-dev": [],
"aliases": [],
"minimum-stability": "dev",
"stability-flags": {"a/a":20},
"prefer-stable": false,
2014-12-13 22:56:15 +00:00
"prefer-lowest": false,
2024-09-18 14:32:40 +00:00
"platform": {},
"platform-dev": {}
}
--EXPECT--
Upgrading a/a (dev-master oldref => dev-master newref)