Skip to content

Commit 7ef81ca

Browse files
Copilotschlessera
andauthored
Add remote zip fetch failure acceptance test
Co-authored-by: schlessera <83631+schlessera@users.noreply.github.com>
1 parent 9cfe53b commit 7ef81ca

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

‎features/package-install.feature‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1051,6 +1051,17 @@ Feature: Install WP-CLI packages
10511051
ZipArchive failed to unzip
10521052
"""
10531053
1054+
Scenario: Install from a remote zip URL that returns 404
1055+
Given an empty directory
1056+
And a PHP built-in web server
1057+
1058+
When I try `wp package install http://localhost:8080/missing.zip`
1059+
Then the return code should be 1
1060+
And STDERR should contain:
1061+
"""
1062+
Couldn't download package from 'http://localhost:8080/missing.zip' (HTTP code 404).
1063+
"""
1064+
10541065
@github-api
10551066
Scenario: Install a package from Git using a shortened mixed-case package identifier but lowercase composer.json name
10561067
Given an empty directory

0 commit comments

Comments
 (0)