Added more poolbuilder test
parent
d78c37edd2
commit
b87fc5bbfd
|
@ -272,7 +272,8 @@ class PoolBuilder
|
|||
|
||||
// Make sure we empty the packagesToLoad here as it would result
|
||||
// in an endless loop with non-existent packages for example
|
||||
$this->packagesToLoad = array();
|
||||
// TODO: fixme, this should only happen if it's not a new package
|
||||
// $this->packagesToLoad = array();
|
||||
}
|
||||
|
||||
private function loadPackage(Request $request, PackageInterface $package, $propagateUpdate = true)
|
||||
|
|
|
@ -0,0 +1,29 @@
|
|||
--TEST--
|
||||
Test irrelevant package versions are not loaded
|
||||
|
||||
--REQUEST--
|
||||
{
|
||||
"require": {
|
||||
"root/req": "*"
|
||||
}
|
||||
}
|
||||
|
||||
--FIXED--
|
||||
[
|
||||
]
|
||||
|
||||
--PACKAGES--
|
||||
[
|
||||
{"name": "root/req", "version": "1.0.0", "require": {"dep/dep": "2.*"}},
|
||||
{"name": "dep/dep", "version": "2.3.4", "require": {"dep/dep2": "2.*"}},
|
||||
{"name": "dep/dep", "version": "3.0.1"},
|
||||
{"name": "dep/dep2", "version": "2.3.4"},
|
||||
{"name": "dep/dep2", "version": "3.0.1"}
|
||||
]
|
||||
|
||||
--EXPECT--
|
||||
[
|
||||
"root/req-1.0.0.0",
|
||||
"dep/dep-2.3.4.0",
|
||||
"dep/dep2-2.3.4.0"
|
||||
]
|
|
@ -0,0 +1,26 @@
|
|||
--TEST--
|
||||
Test irrelevant package versions are not loaded
|
||||
|
||||
--REQUEST--
|
||||
{
|
||||
"require": {
|
||||
"root/req": "*"
|
||||
}
|
||||
}
|
||||
|
||||
--FIXED--
|
||||
[
|
||||
]
|
||||
|
||||
--PACKAGES--
|
||||
[
|
||||
{"name": "root/req", "version": "1.0.0", "require": {"dep/dep": "2.*"}},
|
||||
{"name": "dep/dep", "version": "2.3.4"},
|
||||
{"name": "dep/dep", "version": "3.0.1"}
|
||||
]
|
||||
|
||||
--EXPECT--
|
||||
[
|
||||
"root/req-1.0.0.0",
|
||||
"dep/dep-2.3.4.0"
|
||||
]
|
Loading…
Reference in New Issue