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

Fix tests and edge case

This commit is contained in:
Jordi Boggiano 2021-01-12 14:00:02 +01:00
parent 94076c0bb9
commit d94e638461
No known key found for this signature in database
GPG key ID: 7BBD42C429EC80BC
2 changed files with 6 additions and 3 deletions

View file

@ -18,6 +18,7 @@ use Composer\Installer\PluginInstaller;
use Composer\Package\CompletePackage;
use Composer\Package\Loader\JsonLoader;
use Composer\Package\Loader\ArrayLoader;
use Composer\Package\RootPackage;
use Composer\Plugin\PluginManager;
use Composer\IO\BufferIO;
use Composer\EventDispatcher\EventDispatcher;
@ -111,6 +112,7 @@ class PluginInstallerTest extends TestCase
$this->composer->setInstallationManager($im);
$this->composer->setAutoloadGenerator($this->autoloadGenerator);
$this->composer->setEventDispatcher(new EventDispatcher($this->composer, $this->io));
$this->composer->setPackage(new RootPackage('dummy/root', '1.0.0.0', '1.0.0'));
$this->pm = new PluginManager($this->io, $this->composer);
$this->composer->setPluginManager($this->pm);