Skip to content

Commit fd5a464

Browse files
Copilotswissspidy
andcommitted
Fix test expectations and remove invalid --force flag from language install commands
Co-authored-by: swissspidy <841956+swissspidy@users.noreply.github.com>
1 parent 73abc92 commit fd5a464

3 files changed

Lines changed: 22 additions & 26 deletions

File tree

features/language-core.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -494,8 +494,8 @@ Feature: Manage core translation files for a WordPress install
494494
And STDERR should be empty
495495

496496
When I run `wp language core update --format=summary`
497-
Then STDOUT should be empty
498-
And STDERR should contain:
497+
Then STDOUT should contain:
499498
"""
500499
Success: Translations are up to date.
501500
"""
501+
And STDERR should be empty

features/language-plugin.feature

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -464,11 +464,11 @@ Feature: Manage plugin translation files for a WordPress install
464464
And STDERR should be empty
465465

466466
When I run `wp language plugin update --all --format=summary`
467-
Then STDOUT should be empty
468-
And STDERR should contain:
467+
Then STDOUT should contain:
469468
"""
470469
Success: Translations are up to date.
471470
"""
471+
And STDERR should be empty
472472

473473
@require-wp-4.0
474474
Scenario: Plugin translation update with format flag and actual updates
@@ -484,8 +484,8 @@ Feature: Manage plugin translation files for a WordPress install
484484
When I run `wp plugin install akismet --version=4.0 --force`
485485
And I run `wp language plugin list akismet --fields=plugin,language,update,status`
486486
Then STDOUT should be a table containing rows:
487-
| plugin | language | update | status |
488-
| akismet | de_DE | available | installed |
487+
| plugin | language | update | status |
488+
| akismet | de_DE | available | installed |
489489

490490
When I run `wp language plugin update akismet --format=json`
491491
Then STDOUT should be JSON containing:
@@ -495,10 +495,9 @@ Feature: Manage plugin translation files for a WordPress install
495495
And STDERR should be empty
496496

497497
When I run `wp plugin install akismet --version=3.2 --force`
498-
And I run `wp language plugin install akismet de_DE --force`
498+
And I run `wp language plugin install akismet de_DE`
499499
And I run `wp plugin install akismet --version=4.0 --force`
500-
501-
When I run `wp language plugin update akismet --format=csv`
500+
And I run `wp language plugin update akismet --format=csv`
502501
Then STDOUT should contain:
503502
"""
504503
slug,language,status
@@ -510,12 +509,11 @@ Feature: Manage plugin translation files for a WordPress install
510509
And STDERR should be empty
511510

512511
When I run `wp plugin install akismet --version=3.2 --force`
513-
And I run `wp language plugin install akismet de_DE --force`
512+
And I run `wp language plugin install akismet de_DE`
514513
And I run `wp plugin install akismet --version=4.0 --force`
515-
516-
When I run `wp language plugin update akismet --format=summary`
517-
Then STDOUT should be empty
518-
And STDERR should contain:
514+
And I run `wp language plugin update akismet --format=summary`
515+
Then STDOUT should contain:
519516
"""
520517
Success: Updated 1/1 translation.
521518
"""
519+
And STDERR should be empty

features/language-theme.feature

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -348,11 +348,11 @@ Feature: Manage theme translation files for a WordPress install
348348
And STDERR should be empty
349349

350350
When I run `wp language theme update --all --format=summary`
351-
Then STDOUT should be empty
352-
And STDERR should contain:
351+
Then STDOUT should contain:
353352
"""
354353
Success: Translations are up to date.
355354
"""
355+
And STDERR should be empty
356356

357357
@require-wp-4.0
358358
Scenario: Theme translation update with format flag and actual updates
@@ -368,8 +368,8 @@ Feature: Manage theme translation files for a WordPress install
368368
When I run `wp theme install twentyfifteen --version=2.5 --force`
369369
And I run `wp language theme list twentyfifteen --fields=theme,language,update,status`
370370
Then STDOUT should be a table containing rows:
371-
| theme | language | update | status |
372-
| twentyfifteen | de_DE | available | installed |
371+
| theme | language | update | status |
372+
| twentyfifteen | de_DE | available | installed |
373373

374374
When I run `wp language theme update twentyfifteen --format=json`
375375
Then STDOUT should be JSON containing:
@@ -379,10 +379,9 @@ Feature: Manage theme translation files for a WordPress install
379379
And STDERR should be empty
380380

381381
When I run `wp theme install twentyfifteen --version=2.0 --force`
382-
And I run `wp language theme install twentyfifteen de_DE --force`
382+
And I run `wp language theme install twentyfifteen de_DE`
383383
And I run `wp theme install twentyfifteen --version=2.5 --force`
384-
385-
When I run `wp language theme update twentyfifteen --format=csv`
384+
And I run `wp language theme update twentyfifteen --format=csv`
386385
Then STDOUT should contain:
387386
"""
388387
slug,language,status
@@ -394,12 +393,11 @@ Feature: Manage theme translation files for a WordPress install
394393
And STDERR should be empty
395394

396395
When I run `wp theme install twentyfifteen --version=2.0 --force`
397-
And I run `wp language theme install twentyfifteen de_DE --force`
396+
And I run `wp language theme install twentyfifteen de_DE`
398397
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:
398+
And I run `wp language theme update twentyfifteen --format=summary`
399+
Then STDOUT should contain:
403400
"""
404401
Success: Updated 1/1 translation.
405402
"""
403+
And STDERR should be empty

0 commit comments

Comments
 (0)