Skip to content

Commit 8ccf908

Browse files
authored
Merge pull request #163 from wp-cli/fix-gherkin-issues
Fix Gherkin lint issues
2 parents e3d89d9 + 9928a5a commit 8ccf908

File tree

3 files changed

+43
-45
lines changed

3 files changed

+43
-45
lines changed

features/language-core.feature

Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Feature: Manage translation files for a WordPress install
1+
Feature: Manage core translation files for a WordPress install
22

33
@require-wp-4.0
44
Scenario: Core translation CRUD
@@ -178,13 +178,13 @@ Feature: Manage translation files for a WordPress install
178178
"""
179179

180180
When I run `wp language core uninstall en_CA ja`
181-
Then the wp-content/languages/admin-en_CA.po file should not exist
182-
And the wp-content/languages/en_CA.po file should not exist
183-
And the wp-content/languages/en_CA.l10n.php file should not exist
184-
And the wp-content/languages/admin-ja.po file should not exist
185-
And the wp-content/languages/ja.po file should not exist
186-
And the wp-content/languages/ja.l10n.php file should not exist
187-
And STDOUT should be:
181+
Then the wp-content/languages/admin-en_CA.po file should not exist
182+
And the wp-content/languages/en_CA.po file should not exist
183+
And the wp-content/languages/en_CA.l10n.php file should not exist
184+
And the wp-content/languages/admin-ja.po file should not exist
185+
And the wp-content/languages/ja.po file should not exist
186+
And the wp-content/languages/ja.l10n.php file should not exist
187+
And STDOUT should be:
188188
"""
189189
Success: Language uninstalled.
190190
Success: Language uninstalled.
@@ -439,52 +439,52 @@ Feature: Manage translation files for a WordPress install
439439
Die aktuelle Version wird installiert
440440
"""
441441

442-
@require-wp-4.0
443-
Scenario: Show correct active language after switching
444-
Given a WP install
445-
And an empty cache
442+
@require-wp-4.0
443+
Scenario: Show correct active language after switching
444+
Given a WP install
445+
And an empty cache
446446

447-
When I try `wp language core is-installed en_US`
448-
Then the return code should be 0
447+
When I try `wp language core is-installed en_US`
448+
Then the return code should be 0
449449

450-
When I run `wp language core install de_DE`
451-
Then the wp-content/languages/admin-de_DE.po file should exist
452-
And the wp-content/languages/de_DE.po file should exist
453-
And STDOUT should contain:
450+
When I run `wp language core install de_DE`
451+
Then the wp-content/languages/admin-de_DE.po file should exist
452+
And the wp-content/languages/de_DE.po file should exist
453+
And STDOUT should contain:
454454
"""
455455
Success: Installed 1 of 1 languages.
456456
"""
457-
And STDERR should be empty
457+
And STDERR should be empty
458458

459-
When I try `wp language core is-installed de_DE`
460-
Then the return code should be 0
459+
When I try `wp language core is-installed de_DE`
460+
Then the return code should be 0
461461

462-
When I run `wp language core list --field=language --status=active`
463-
Then STDOUT should be:
462+
When I run `wp language core list --field=language --status=active`
463+
Then STDOUT should be:
464464
"""
465465
en_US
466466
"""
467467

468-
When I run `wp site switch-language de_DE`
469-
Then STDOUT should be:
468+
When I run `wp site switch-language de_DE`
469+
Then STDOUT should be:
470470
"""
471471
Success: Language activated.
472472
"""
473473

474-
When I run `wp language core list --field=language --status=active`
475-
Then STDOUT should be:
474+
When I run `wp language core list --field=language --status=active`
475+
Then STDOUT should be:
476476
"""
477477
de_DE
478478
"""
479479

480-
When I run `wp site switch-language en_US`
481-
Then STDOUT should be:
480+
When I run `wp site switch-language en_US`
481+
Then STDOUT should be:
482482
"""
483483
Success: Language activated.
484484
"""
485485

486-
When I run `wp language core list --field=language --status=active`
487-
Then STDOUT should be:
486+
When I run `wp language core list --field=language --status=active`
487+
Then STDOUT should be:
488488
"""
489489
en_US
490490
"""
@@ -536,15 +536,15 @@ Feature: Manage translation files for a WordPress install
536536
en_US
537537
"""
538538

539-
@require-wp-4.0
540-
Scenario: List languages by multiple statuses
541-
Given a WP install
542-
And an empty cache
543-
And I run `wp language core install nl_NL`
539+
@require-wp-4.0
540+
Scenario: List languages by multiple statuses
541+
Given a WP install
542+
And an empty cache
543+
And I run `wp language core install nl_NL`
544544

545-
When I run `wp language core list --fields=language,status --status=active,installed`
546-
Then STDOUT should be a table containing rows:
545+
When I run `wp language core list --fields=language,status --status=active,installed`
546+
Then STDOUT should be a table containing rows:
547547
| language | status |
548548
| en_US | active |
549549
| nl_NL | installed |
550-
And STDERR should be empty
550+
And STDERR should be empty

features/language-plugin.feature

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Feature: Manage translation files for a WordPress install
1+
Feature: Manage plugin translation files for a WordPress install
22

33
@require-wp-4.0
44
Scenario: Plugin translation CRUD
@@ -320,8 +320,7 @@ Feature: Manage translation files for a WordPress install
320320

321321
When I run `wp plugin install akismet --version=4.0 --force`
322322
And I run `wp plugin install jetpack --version=6.4 --force`
323-
324-
When I run `wp language plugin list --all --fields=plugin,language,update,status`
323+
And I run `wp language plugin list --all --fields=plugin,language,update,status`
325324
Then STDOUT should be a table containing rows:
326325
| plugin | language | update | status |
327326
| akismet | de_DE_formal | available | installed |
@@ -371,7 +370,7 @@ Feature: Manage translation files for a WordPress install
371370
"""
372371

373372
When I run `wp language plugin install jetpack de_DE`
374-
And STDOUT should contain:
373+
Then STDOUT should contain:
375374
"""
376375
Downloading translation from https://downloads.wordpress.org/translation/plugin/jetpack/6.0/de_DE.zip
377376
"""
@@ -392,7 +391,6 @@ Feature: Manage translation files for a WordPress install
392391
| jetpack | de_DE | none | installed |
393392
And STDERR should be empty
394393

395-
396394
@require-wp-4.0
397395
Scenario: Install translations for all installed plugins
398396
Given a WP install

features/language-theme.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Feature: Manage translation files for a WordPress install
1+
Feature: Manage theme translation files for a WordPress install
22

33
@require-wp-4.0
44
Scenario: Theme translation CRUD

0 commit comments

Comments
 (0)