From 117d717f532a046ac917c12a394b4aaf74c207e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=B6ller?= Date: Sat, 13 Jan 2018 20:44:24 +0100 Subject: [PATCH] Fix: Disable plugins when updating lock file --- src/Command/NormalizeCommand.php | 2 +- test/Unit/Command/NormalizeCommandTest.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Command/NormalizeCommand.php b/src/Command/NormalizeCommand.php index d0bc55c8..cc63fb17 100644 --- a/src/Command/NormalizeCommand.php +++ b/src/Command/NormalizeCommand.php @@ -131,7 +131,7 @@ protected function execute(Console\Input\InputInterface $input, Console\Output\O private function updateLocker(): int { return $this->getApplication()->run( - new Console\Input\StringInput('update --lock'), + new Console\Input\StringInput('update --lock --no-plugins'), new Console\Output\NullOutput() ); } diff --git a/test/Unit/Command/NormalizeCommandTest.php b/test/Unit/Command/NormalizeCommandTest.php index b8602197..99aa6db3 100644 --- a/test/Unit/Command/NormalizeCommandTest.php +++ b/test/Unit/Command/NormalizeCommandTest.php @@ -502,7 +502,7 @@ public function testExecuteFailsIfLockerIsLockedAndFreshButLockerCouldNotBeUpdat Argument::allOf( Argument::type(Console\Input\StringInput::class), Argument::that(function (Console\Input\StringInput $input) { - return 'update --lock' === (string) $input; + return 'update --lock --no-plugins' === (string) $input; }) ), Argument::type(Console\Output\NullOutput::class) @@ -588,7 +588,7 @@ public function testExecuteSucceedsIfLockerIsLockedAndLockerCouldBeUpdatedAfterN Argument::allOf( Argument::type(Console\Input\StringInput::class), Argument::that(function (Console\Input\StringInput $input) { - return 'update --lock' === (string) $input; + return 'update --lock --no-plugins' === (string) $input; }) ), Argument::type(Console\Output\NullOutput::class)