1
0
Fork 0

Fix tests

pull/3551/head
Jordi Boggiano 2014-12-13 16:14:03 +00:00
parent 90a29c127f
commit 1622b9a390
2 changed files with 5 additions and 2 deletions

View File

@ -289,7 +289,9 @@ class Factory
$composer->setPluginManager($pm); $composer->setPluginManager($pm);
// purge packages if they have been deleted on the filesystem // purge packages if they have been deleted on the filesystem
if ($rm->getLocalRepository()) {
$this->purgePackages($rm->getLocalRepository(), $im); $this->purgePackages($rm->getLocalRepository(), $im);
}
if (!$disablePlugins) { if (!$disablePlugins) {
$pm->loadInstalledPlugins(); $pm->loadInstalledPlugins();

View File

@ -16,6 +16,7 @@ use Composer\Config;
use Composer\Factory; use Composer\Factory;
use Composer\Repository; use Composer\Repository;
use Composer\Repository\RepositoryManager; use Composer\Repository\RepositoryManager;
use Composer\Repository\WritableRepositoryInterface;
use Composer\Installer; use Composer\Installer;
use Composer\IO\IOInterface; use Composer\IO\IOInterface;
@ -46,7 +47,7 @@ class FactoryMock extends Factory
{ {
} }
protected function purgePackages(Repository\RepositoryManager $rm, Installer\InstallationManager $im) protected function purgePackages(WritableRepositoryInterface $repo, Installer\InstallationManager $im)
{ {
} }
} }