Browse Source

Fix tests

Jordi Boggiano 4 years ago
parent
commit
d89342dc43

+ 3 - 3
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--

+ 1 - 0
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)