mirror of
https://github.com/composer/composer
synced 2025-05-09 00:22:53 +00:00
Create the pool in the installer before giving it to the solver
This commit is contained in:
parent
7036f99999
commit
b6e2d60c9e
5 changed files with 60 additions and 59 deletions
|
@ -40,7 +40,6 @@ class SolverTest extends TestCase
|
|||
|
||||
$this->request = new Request($this->repoSet);
|
||||
$this->policy = new DefaultPolicy;
|
||||
$this->solver = new Solver($this->policy, $this->repoSet, $this->repoInstalled, new NullIO());
|
||||
}
|
||||
|
||||
public function testSolverInstallSingle()
|
||||
|
@ -95,6 +94,8 @@ class SolverTest extends TestCase
|
|||
$this->repoSet->addRepository($repo1);
|
||||
$this->repoSet->addRepository($repo2);
|
||||
|
||||
$this->solver = new Solver($this->policy, $this->repoSet->createPool(), $this->repoInstalled, new NullIO());
|
||||
|
||||
$this->request->install('foo');
|
||||
|
||||
$this->checkSolverResult(array(
|
||||
|
@ -842,6 +843,8 @@ class SolverTest extends TestCase
|
|||
{
|
||||
$this->repoSet->addRepository($this->repoInstalled);
|
||||
$this->repoSet->addRepository($this->repo);
|
||||
|
||||
$this->solver = new Solver($this->policy, $this->repoSet->createPool(), $this->repoInstalled, new NullIO());
|
||||
}
|
||||
|
||||
protected function checkSolverResult(array $expected)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue