Browse Source

Correctly use install and update commands in our installer tests

Nils Adermann 5 years ago
parent
commit
ff5ec54f04

+ 1 - 1
tests/Composer/Test/Fixtures/installer/abandoned-listed.test

@@ -22,7 +22,7 @@ Abandoned packages are flagged
     }
 }
 --RUN--
-install
+update
 --EXPECT-OUTPUT--
 Loading composer repositories with package information
 Updating dependencies

+ 1 - 1
tests/Composer/Test/Fixtures/installer/broken-deps-do-not-replace.test

@@ -19,7 +19,7 @@ Broken dependencies should not lead to a replacer being installed which is not m
     }
 }
 --RUN--
-install
+update
 --EXPECT-OUTPUT--
 Loading composer repositories with package information
 Updating dependencies

+ 1 - 1
tests/Composer/Test/Fixtures/installer/github-issues-4319.test

@@ -28,7 +28,7 @@ Present a clear error message when config.platform.php version results in a conf
 }
 
 --RUN--
-install
+update
 
 --EXPECT-OUTPUT--
 Loading composer repositories with package information

+ 1 - 1
tests/Composer/Test/Fixtures/installer/suggest-installed.test

@@ -17,7 +17,7 @@ Suggestions are not displayed for installed packages
     }
 }
 --RUN--
-install
+update
 --EXPECT-OUTPUT--
 Loading composer repositories with package information
 Updating dependencies

+ 1 - 0
tests/Composer/Test/Fixtures/installer/suggest-prod.test

@@ -17,6 +17,7 @@ Suggestions are not displayed in non-dev mode
 --RUN--
 install --no-dev
 --EXPECT-OUTPUT--
+<warning>No lock file found. Updating dependencies instead of installing from lock file. Use composer update over composer install if you do not have a lock file.</warning>
 Loading composer repositories with package information
 Updating dependencies
 Lock file operations: 1 install, 0 updates, 0 removals

+ 1 - 1
tests/Composer/Test/Fixtures/installer/suggest-replaced.test

@@ -17,7 +17,7 @@ Suggestions are not displayed for packages if they are replaced
     }
 }
 --RUN--
-install
+update
 --EXPECT-OUTPUT--
 Loading composer repositories with package information
 Updating dependencies

+ 1 - 0
tests/Composer/Test/Fixtures/installer/suggest-uninstalled.test

@@ -17,6 +17,7 @@ Suggestions are displayed
 --RUN--
 install
 --EXPECT-OUTPUT--
+<warning>No lock file found. Updating dependencies instead of installing from lock file. Use composer update over composer install if you do not have a lock file.</warning>
 Loading composer repositories with package information
 Updating dependencies
 Lock file operations: 1 install, 0 updates, 0 removals