@@ -194,6 +194,54 @@ Feature: Install WP-CLI packages
194194 wp-cli/google-sitemap-generator-cli
195195 """
196196
197+ @github-api
198+ Scenario : Install a package from a Git URL with mixed case git name but lower case composer.json name
199+ Given an empty directory
200+
201+ When I try `wp package install https://github.com/CapitalWPCLI/examplecommand.git`
202+ Then the return code should be 0
203+ And STDERR should contain:
204+ """
205+ Warning: Package name mismatch...Updating the name with correct value.
206+ """
207+ And STDOUT should contain:
208+ """
209+ Success: Package installed.
210+ """
211+
212+ When I run `wp package list --fields=name,pretty_name`
213+ Then STDOUT should be a table containing rows:
214+ | name | pretty_name |
215+ | capitalwpcli /examplecommand | capitalwpcli /examplecommand |
216+
217+ When I run `wp hello-world`
218+ Then STDOUT should contain:
219+ """
220+ Success: Hello world.
221+ """
222+
223+ @github-api
224+ Scenario : Install a package from a Git URL with mixed case git name and the same mixed case composer.json name
225+ Given an empty directory
226+
227+ When I run `wp package install https://github.com/gitlost/TestMixedCaseCommand.git`
228+ Then STDERR should be empty
229+ And STDOUT should contain:
230+ """
231+ Success: Package installed.
232+ """
233+
234+ When I run `wp package list --fields=name,pretty_name`
235+ Then STDOUT should be a table containing rows:
236+ | name | pretty_name |
237+ | gitlost /testmixedcasecommand | gitlost /TestMixedCaseCommand |
238+
239+ When I run `wp TestMixedCaseCommand`
240+ Then STDOUT should contain:
241+ """
242+ Success: Test Mixed Case Command Name
243+ """
244+
197245 # Current releases of schlessera/test-command are PHP 5.5 dependent.
198246 @github-api @shortened @require-php-5.5
199247 Scenario : Install a package from Git using a shortened package identifier
0 commit comments