Skip to content

Commit dfdb648

Browse files
committed
Update tests
1 parent f966f04 commit dfdb648

2 files changed

Lines changed: 12 additions & 8 deletions

File tree

features/language-plugin.feature

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -465,16 +465,18 @@ Feature: Manage plugin translation files for a WordPress install
465465
And a wp-content/languages/plugins/different-text-domain-de_DE.l10n.php file:
466466
"""
467467
"""
468+
And a wp-content/languages/plugins/different-text-domain-de_DE.mo file:
469+
"""
470+
"""
471+
And a wp-content/languages/plugins/different-text-domain-de_DE.po file:
472+
"""
473+
"""
468474

469475
When I run `wp language plugin list test-plugin --fields=language,status --format=csv`
470476
Then STDOUT should contain:
471477
"""
472478
en_US,active
473479
"""
474-
And STDOUT should contain:
475-
"""
476-
de_DE,installed
477-
"""
478480
And STDERR should be empty
479481

480482
# If the fix is working, installed languages should be detected via text domain

features/language-theme.feature

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -347,16 +347,18 @@ Feature: Manage theme translation files for a WordPress install
347347
And a wp-content/languages/themes/different-text-domain-de_DE.l10n.php file:
348348
"""
349349
"""
350+
And a wp-content/languages/themes/different-text-domain-de_DE.mo file:
351+
"""
352+
"""
353+
And a wp-content/languages/themes/different-text-domain-de_DE.po file:
354+
"""
355+
"""
350356

351357
When I run `wp language theme list test-theme --fields=language,status --format=csv`
352358
Then STDOUT should contain:
353359
"""
354360
en_US,active
355361
"""
356-
And STDOUT should contain:
357-
"""
358-
de_DE,installed
359-
"""
360362
And STDERR should be empty
361363

362364
# If the fix is working, installed languages should be detected via text domain

0 commit comments

Comments
 (0)