@@ -202,7 +202,8 @@ Feature: Update WordPress core
202202 Success: WordPress updated successfully.
203203 """
204204
205- When I run `wp core verify-checksums`
205+ # Allow for warnings to be produced.
206+ When I try `wp core verify-checksums`
206207 Then STDOUT should be:
207208 """
208209 Success: WordPress installation verifies against checksums.
@@ -250,6 +251,81 @@ Feature: Update WordPress core
250251 When I run `wp post create --post_title='Test post' --porcelain`
251252 Then STDOUT should be a number
252253
254+ Scenario : Make sure files are cleaned up with mixed case
255+ Given a WP install
256+ And I try `wp theme install twentytwenty --activate`
257+
258+ When I run `wp core update --version=5.8 --force`
259+ Then the wp-includes/Requests/Transport/cURL.php file should exist
260+ Then the wp-includes/Requests/Exception/Transport/cURL.php file should exist
261+ Then the wp-includes/Requests/Exception/HTTP/502.php file should exist
262+ Then the wp-includes/Requests/IRI.php file should exist
263+ Then the wp-includes/Requests/Transport/Curl.php file should not exist
264+ Then the wp-includes/Requests/Exception/Transport/Curl.php file should not exist
265+ Then the wp-includes/Requests/Exception/Http/Status502.php file should not exist
266+ Then the wp-includes/Requests/Iri.php file should not exist
267+
268+ When I run `wp core update --version=5.9-beta1 --force`
269+ Then the wp-includes/Requests/Transport/cURL.php file should not exist
270+ Then the wp-includes/Requests/Exception/Transport/cURL.php file should not exist
271+ Then the wp-includes/Requests/Exception/HTTP/502.php file should not exist
272+ Then the wp-includes/Requests/IRI.php file should not exist
273+ Then the wp-includes/Requests/Transport/Curl.php file should exist
274+ Then the wp-includes/Requests/Exception/Transport/Curl.php file should exist
275+ Then the wp-includes/Requests/Exception/Http/Status502.php file should exist
276+ Then the wp-includes/Requests/Iri.php file should exist
277+ Then STDOUT should contain:
278+ """
279+ File removed: wp-includes/Requests/Transport/fsockopen.php
280+ File removed: wp-includes/Requests/Transport/cURL.php
281+ File removed: wp-includes/Requests/Hooker.php
282+ File removed: wp-includes/Requests/IPv6.php
283+ File removed: wp-includes/Requests/Exception/Transport/cURL.php
284+ File removed: wp-includes/Requests/Exception/HTTP.php
285+ File removed: wp-includes/Requests/Exception/HTTP/502.php
286+ File removed: wp-includes/Requests/Exception/HTTP/Unknown.php
287+ File removed: wp-includes/Requests/Exception/HTTP/412.php
288+ File removed: wp-includes/Requests/Exception/HTTP/408.php
289+ File removed: wp-includes/Requests/Exception/HTTP/431.php
290+ File removed: wp-includes/Requests/Exception/HTTP/501.php
291+ File removed: wp-includes/Requests/Exception/HTTP/500.php
292+ File removed: wp-includes/Requests/Exception/HTTP/407.php
293+ File removed: wp-includes/Requests/Exception/HTTP/416.php
294+ File removed: wp-includes/Requests/Exception/HTTP/428.php
295+ File removed: wp-includes/Requests/Exception/HTTP/406.php
296+ File removed: wp-includes/Requests/Exception/HTTP/504.php
297+ File removed: wp-includes/Requests/Exception/HTTP/411.php
298+ File removed: wp-includes/Requests/Exception/HTTP/414.php
299+ File removed: wp-includes/Requests/Exception/HTTP/511.php
300+ File removed: wp-includes/Requests/Exception/HTTP/410.php
301+ File removed: wp-includes/Requests/Exception/HTTP/403.php
302+ File removed: wp-includes/Requests/Exception/HTTP/400.php
303+ File removed: wp-includes/Requests/Exception/HTTP/505.php
304+ File removed: wp-includes/Requests/Exception/HTTP/413.php
305+ File removed: wp-includes/Requests/Exception/HTTP/404.php
306+ File removed: wp-includes/Requests/Exception/HTTP/306.php
307+ File removed: wp-includes/Requests/Exception/HTTP/304.php
308+ File removed: wp-includes/Requests/Exception/HTTP/405.php
309+ File removed: wp-includes/Requests/Exception/HTTP/429.php
310+ File removed: wp-includes/Requests/Exception/HTTP/417.php
311+ File removed: wp-includes/Requests/Exception/HTTP/409.php
312+ File removed: wp-includes/Requests/Exception/HTTP/402.php
313+ File removed: wp-includes/Requests/Exception/HTTP/418.php
314+ File removed: wp-includes/Requests/Exception/HTTP/305.php
315+ File removed: wp-includes/Requests/Exception/HTTP/415.php
316+ File removed: wp-includes/Requests/Exception/HTTP/401.php
317+ File removed: wp-includes/Requests/Exception/HTTP/503.php
318+ File removed: wp-includes/Requests/IRI.php
319+ File removed: wp-includes/Requests/IDNAEncoder.php
320+ File removed: wp-includes/Requests/SSL.php
321+ File removed: wp-includes/Requests/Proxy/HTTP.php
322+ """
323+
324+ When I run `wp option add str_opt 'bar' `
325+ Then STDOUT should not be empty
326+ When I run `wp post create --post_title='Test post' --porcelain`
327+ Then STDOUT should be a number
328+
253329 @less-than-php-7.3
254330 Scenario : Minor update on an unlocalized WordPress release
255331 Given a WP install
0 commit comments