Skip to content

Commit 1e612fb

Browse files
Copilotswissspidy
andcommitted
Uninstall language before reinstalling to ensure updates are triggered
Co-authored-by: swissspidy <[email protected]>
1 parent 374d75e commit 1e612fb

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

features/language-plugin.feature

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

497-
When I run `wp plugin install akismet --version=3.2 --force`
497+
When I run `wp language plugin uninstall akismet de_DE`
498+
And I run `wp plugin install akismet --version=3.2 --force`
498499
And I run `wp language plugin install akismet de_DE`
499500
And I run `wp plugin install akismet --version=4.0 --force`
500501
And I run `wp language plugin update akismet --format=csv`
@@ -508,7 +509,8 @@ Feature: Manage plugin translation files for a WordPress install
508509
"""
509510
And STDERR should be empty
510511

511-
When I run `wp plugin install akismet --version=3.2 --force`
512+
When I run `wp language plugin uninstall akismet de_DE`
513+
And I run `wp plugin install akismet --version=3.2 --force`
512514
And I run `wp language plugin install akismet de_DE`
513515
And I run `wp plugin install akismet --version=4.0 --force`
514516
And I run `wp language plugin update akismet --format=summary`

features/language-theme.feature

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,8 @@ Feature: Manage theme translation files for a WordPress install
378378
"""
379379
And STDERR should be empty
380380

381-
When I run `wp theme install twentyfifteen --version=2.0 --force`
381+
When I run `wp language theme uninstall twentyfifteen de_DE`
382+
And I run `wp theme install twentyfifteen --version=2.0 --force`
382383
And I run `wp language theme install twentyfifteen de_DE`
383384
And I run `wp theme install twentyfifteen --version=2.5 --force`
384385
And I run `wp language theme update twentyfifteen --format=csv`
@@ -392,7 +393,8 @@ Feature: Manage theme translation files for a WordPress install
392393
"""
393394
And STDERR should be empty
394395

395-
When I run `wp theme install twentyfifteen --version=2.0 --force`
396+
When I run `wp language theme uninstall twentyfifteen de_DE`
397+
And I run `wp theme install twentyfifteen --version=2.0 --force`
396398
And I run `wp language theme install twentyfifteen de_DE`
397399
And I run `wp theme install twentyfifteen --version=2.5 --force`
398400
And I run `wp language theme update twentyfifteen --format=summary`

0 commit comments

Comments
 (0)