mirror of
https://github.com/composer/composer
synced 2025-05-08 16:17:37 +00:00
Merge pull request #9317 from naderman/test-provider-satisfy-self
Test: Verify require for package provided or replaced by pkg itself is used
This commit is contained in:
commit
492bece6e2
2 changed files with 50 additions and 0 deletions
|
@ -0,0 +1,25 @@
|
|||
--TEST--
|
||||
Test that a package requiring something it provides itself, satisfies itself even though a package exists.
|
||||
--COMPOSER--
|
||||
{
|
||||
"repositories": [
|
||||
{
|
||||
"type": "package",
|
||||
"package": {
|
||||
"name": "provided/pkg",
|
||||
"version": "1.0.0"
|
||||
}
|
||||
}
|
||||
],
|
||||
"require": {
|
||||
"provided/pkg": "1.0.0"
|
||||
},
|
||||
"provide": {
|
||||
"provided/pkg": "1.0.0"
|
||||
}
|
||||
}
|
||||
|
||||
--RUN--
|
||||
update
|
||||
|
||||
--EXPECT--
|
|
@ -0,0 +1,25 @@
|
|||
--TEST--
|
||||
Test that a package requiring something it replaces itself, satisfies itself even though a package exists.
|
||||
--COMPOSER--
|
||||
{
|
||||
"repositories": [
|
||||
{
|
||||
"type": "package",
|
||||
"package": {
|
||||
"name": "replaced/pkg",
|
||||
"version": "1.0.0"
|
||||
}
|
||||
}
|
||||
],
|
||||
"require": {
|
||||
"replaced/pkg": "1.0.0"
|
||||
},
|
||||
"provide": {
|
||||
"replaced/pkg": "1.0.0"
|
||||
}
|
||||
}
|
||||
|
||||
--RUN--
|
||||
update
|
||||
|
||||
--EXPECT--
|
Loading…
Add table
Add a link
Reference in a new issue