Fix tests
parent
d7b77b9e87
commit
5e52d5c1ad
|
@ -49,7 +49,7 @@ class FilesystemRepository extends ArrayRepository implements WritableRepository
|
|||
}
|
||||
|
||||
if (is_array($packages)) {
|
||||
$loader = new ArrayLoader();
|
||||
$loader = new ArrayLoader($this->repositoryManager);
|
||||
foreach ($packages as $package) {
|
||||
$this->addPackage($loader->load($package));
|
||||
}
|
||||
|
|
|
@ -22,6 +22,7 @@ class FilesystemRepositoryTest extends \PHPUnit_Framework_TestCase
|
|||
$json = $this->createJsonFileMock();
|
||||
|
||||
$repository = new FilesystemRepository($json);
|
||||
$repository->setRepositoryManager($this->getMock('Composer\Repository\RepositoryManager'));
|
||||
|
||||
$json
|
||||
->expects($this->once())
|
||||
|
@ -47,6 +48,7 @@ class FilesystemRepositoryTest extends \PHPUnit_Framework_TestCase
|
|||
$json = $this->createJsonFileMock();
|
||||
|
||||
$repository = new FilesystemRepository($json);
|
||||
$repository->setRepositoryManager($this->getMock('Composer\Repository\RepositoryManager'));
|
||||
|
||||
$json
|
||||
->expects($this->once())
|
||||
|
|
Loading…
Reference in New Issue