added test case
parent
be736c745e
commit
d0829adfee
|
@ -0,0 +1,46 @@
|
|||
--TEST--
|
||||
Installs a dev package from lock using dist
|
||||
--COMPOSER--
|
||||
{
|
||||
"repositories": [
|
||||
{
|
||||
"type": "package",
|
||||
"package": [
|
||||
{
|
||||
"name": "a/a",
|
||||
"version": "dev-master",
|
||||
"version_normalized": "9999999-dev",
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "http://www.example.com/dist.zip",
|
||||
"reference": "459720ff3b74ee0c0d159277c6f2f5df89d8a4f6"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"require": {
|
||||
"a/a": "dev-master"
|
||||
},
|
||||
"minimum-stability": "dev"
|
||||
}
|
||||
--RUN--
|
||||
install --prefer-dist
|
||||
--EXPECT-LOCK--
|
||||
{
|
||||
"packages": [
|
||||
{
|
||||
"version": "dev-master",
|
||||
"package": "a/a",
|
||||
"source-reference": "459720ff3b74ee0c0d159277c6f2f5df89d8a4f6"
|
||||
}
|
||||
],
|
||||
"packages-dev": null,
|
||||
"aliases": [],
|
||||
"minimum-stability": "dev",
|
||||
"stability-flags": {
|
||||
"a/a": 20
|
||||
}
|
||||
}
|
||||
--EXPECT--
|
||||
Installing a/a (dev-master)
|
Loading…
Reference in New Issue