@@ -349,4 +349,57 @@ Feature: Manage theme translation files for a WordPress install
349349
350350 When I run `wp language theme update --all --format=summary`
351351 Then STDOUT should be empty
352+ And STDERR should contain:
353+ """
354+ Success: Translations are up to date.
355+ """
356+
357+ @require-wp-4.0
358+ Scenario : Theme translation update with format flag and actual updates
359+ Given a WP install
360+ And an empty cache
361+
362+ When I run `wp theme install twentyfifteen --version=2.0 --force`
363+ Then STDERR should be empty
364+
365+ When I run `wp language theme install twentyfifteen de_DE`
366+ Then STDERR should be empty
367+
368+ When I run `wp theme install twentyfifteen --version=2.5 --force`
369+ And I run `wp language theme list twentyfifteen --fields=theme,language,update,status`
370+ Then STDOUT should be a table containing rows:
371+ | theme | language | update | status |
372+ | twentyfifteen | de_DE | available | installed |
373+
374+ When I run `wp language theme update twentyfifteen --format=json`
375+ Then STDOUT should be JSON containing:
376+ """
377+ [{"slug":"twentyfifteen","language":"de_DE","status":"updated"}]
378+ """
379+ And STDERR should be empty
380+
381+ When I run `wp theme install twentyfifteen --version=2.0 --force`
382+ And I run `wp language theme install twentyfifteen de_DE --force`
383+ And I run `wp theme install twentyfifteen --version=2.5 --force`
384+
385+ When I run `wp language theme update twentyfifteen --format=csv`
386+ Then STDOUT should contain:
387+ """
388+ slug,language,status
389+ """
390+ And STDOUT should contain:
391+ """
392+ twentyfifteen,de_DE,updated
393+ """
352394 And STDERR should be empty
395+
396+ When I run `wp theme install twentyfifteen --version=2.0 --force`
397+ And I run `wp language theme install twentyfifteen de_DE --force`
398+ And I run `wp theme install twentyfifteen --version=2.5 --force`
399+
400+ When I run `wp language theme update twentyfifteen --format=summary`
401+ Then STDOUT should be empty
402+ And STDERR should contain:
403+ """
404+ Success: Updated 1/1 translation.
405+ """
0 commit comments