1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-09 00:22:53 +00:00

Set all package ids only once the pool is created

They all get set in one place only and at a specific time when nothing
else will possibly change them anymore
This commit is contained in:
Nils Adermann 2018-09-12 14:30:18 +02:00
parent 5c491ecc9b
commit 81bb8f81ad
5 changed files with 4 additions and 25 deletions

View file

@ -98,8 +98,6 @@ class RuleTest extends TestCase
$p1 = $this->getPackage('foo', '2.1'),
$p2 = $this->getPackage('baz', '1.1'),
));
$p1->setId(1);
$p2->setId(2);
$rule = new GenericRule(array($p1->getId(), -$p2->getId()), Rule::RULE_JOB_INSTALL, null);