Skip to content
This repository has been archived by the owner on Mar 7, 2023. It is now read-only.

Commit

Permalink
Merge branch 'hotfix/2'
Browse files Browse the repository at this point in the history
Closes #2
  • Loading branch information
michalbundyra committed Oct 12, 2017
2 parents 97c241b + 636acf8 commit 8722031
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,13 +136,15 @@ private function runInstaller(RootPackageInterface $rootPackage, array $packages
{
$this->io->write('<info> Running an update to install dependent packages</info>');

/** @var Installer $installer */
$installer = call_user_func(
$this->installerFactory,
$this->composer,
$this->io,
$rootPackage
);

$installer->setRunScripts(false);
$installer->disablePlugins();
$installer->setUpdate();
$installer->setUpdateWhitelist($packages);
Expand Down
1 change: 1 addition & 0 deletions test/PluginTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ protected function setUp()
protected function setUpComposerInstaller(array $expectedPackages, $expectedReturn = 0)
{
$installer = $this->prophesize(Installer::class);
$installer->setRunScripts(false)->shouldBeCalled();
$installer->disablePlugins()->shouldBeCalled();
$installer->setUpdate()->shouldBeCalled();
$installer->setUpdateWhitelist($expectedPackages)->shouldBeCalled();
Expand Down

0 comments on commit 8722031

Please sign in to comment.