diff --git a/src/Plugin.php b/src/Plugin.php index 4439d40..8df2255 100644 --- a/src/Plugin.php +++ b/src/Plugin.php @@ -136,6 +136,7 @@ private function runInstaller(RootPackageInterface $rootPackage, array $packages { $this->io->write(' Running an update to install dependent packages'); + /** @var Installer $installer */ $installer = call_user_func( $this->installerFactory, $this->composer, @@ -143,6 +144,7 @@ private function runInstaller(RootPackageInterface $rootPackage, array $packages $rootPackage ); + $installer->setRunScripts(false); $installer->disablePlugins(); $installer->setUpdate(); $installer->setUpdateWhitelist($packages); diff --git a/test/PluginTest.php b/test/PluginTest.php index 288a8d3..4e63860 100644 --- a/test/PluginTest.php +++ b/test/PluginTest.php @@ -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();