From d89342dc434d52c88e0e06ce3982da739a467f13 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Fri, 24 Apr 2020 09:07:32 +0200 Subject: [PATCH] Fix tests --- .../Composer/Test/Fixtures/installer/update-no-install.test | 6 +++--- tests/Composer/Test/InstallerTest.php | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/Composer/Test/Fixtures/installer/update-no-install.test b/tests/Composer/Test/Fixtures/installer/update-no-install.test index acf378675..e1b6f4954 100644 --- a/tests/Composer/Test/Fixtures/installer/update-no-install.test +++ b/tests/Composer/Test/Fixtures/installer/update-no-install.test @@ -56,9 +56,9 @@ update --no-install --EXPECT-INSTALLED-- [ - { "name": "a/a", "version": "1.0.0" }, - { "name": "a/c", "version": "1.0.0" }, - { "name": "a/b", "version": "1.0.0" } + { "name": "a/a", "version": "1.0.0", "type": "library" }, + { "name": "a/b", "version": "1.0.0", "type": "library" }, + { "name": "a/c", "version": "1.0.0", "type": "library" } ] --EXPECT-- diff --git a/tests/Composer/Test/InstallerTest.php b/tests/Composer/Test/InstallerTest.php index f9e1b1793..78c20a1be 100644 --- a/tests/Composer/Test/InstallerTest.php +++ b/tests/Composer/Test/InstallerTest.php @@ -290,6 +290,7 @@ class InstallerTest extends TestCase $installer ->setDevMode(!$input->getOption('no-dev')) ->setUpdate(true) + ->setInstall(!$input->getOption('no-install')) ->setDryRun($input->getOption('dry-run')) ->setUpdateMirrors($updateMirrors) ->setUpdateAllowList($packages)