1
0
Fork 0

added tests for not updating packages referenced by specific commit hash

pull/2353/merge
Mátyás Somfai 2014-01-18 21:09:23 +01:00 committed by Jordi Boggiano
parent 2ae0843616
commit 2ed0bfc1ba
2 changed files with 60 additions and 0 deletions

View File

@ -0,0 +1,30 @@
--TEST--
Updating a dev package forcing it's reference, using dry run, should not do anything if the referenced version is the installed one
--COMPOSER--
{
"repositories": [
{
"type": "package",
"package": [
{
"name": "a/a", "version": "dev-master",
"source": { "reference": "abc123", "url": "", "type": "git" }
}
]
}
],
"require": {
"a/a": "dev-master#def000"
}
}
--INSTALLED--
[
{
"name": "a/a", "version": "dev-master",
"source": { "reference": "def000", "url": "", "type": "git" },
"dist": { "reference": "def000", "url": "", "type": "zip", "shasum": "" }
}
]
--RUN--
update --dry-run
--EXPECT--

View File

@ -0,0 +1,30 @@
--TEST--
Updating a dev package forcing it's reference should not do anything if the referenced version is the installed one
--COMPOSER--
{
"repositories": [
{
"type": "package",
"package": [
{
"name": "a/a", "version": "dev-master",
"source": { "reference": "abc123", "url": "", "type": "git" }
}
]
}
],
"require": {
"a/a": "dev-master#def000"
}
}
--INSTALLED--
[
{
"name": "a/a", "version": "dev-master",
"source": { "reference": "def000", "url": "", "type": "git" },
"dist": { "reference": "def000", "url": "", "type": "zip", "shasum": "" }
}
]
--RUN--
update
--EXPECT--