|
1 | | -Feature: Manage translation files for a WordPress install |
| 1 | +Feature: Manage core translation files for a WordPress install |
2 | 2 |
|
3 | 3 | @require-wp-4.0 |
4 | 4 | Scenario: Core translation CRUD |
@@ -178,13 +178,13 @@ Feature: Manage translation files for a WordPress install |
178 | 178 | """ |
179 | 179 |
|
180 | 180 | 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: |
188 | 188 | """ |
189 | 189 | Success: Language uninstalled. |
190 | 190 | Success: Language uninstalled. |
@@ -439,52 +439,52 @@ Feature: Manage translation files for a WordPress install |
439 | 439 | Die aktuelle Version wird installiert |
440 | 440 | """ |
441 | 441 |
|
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 |
446 | 446 |
|
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 |
449 | 449 |
|
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: |
454 | 454 | """ |
455 | 455 | Success: Installed 1 of 1 languages. |
456 | 456 | """ |
457 | | - And STDERR should be empty |
| 457 | + And STDERR should be empty |
458 | 458 |
|
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 |
461 | 461 |
|
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: |
464 | 464 | """ |
465 | 465 | en_US |
466 | 466 | """ |
467 | 467 |
|
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: |
470 | 470 | """ |
471 | 471 | Success: Language activated. |
472 | 472 | """ |
473 | 473 |
|
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: |
476 | 476 | """ |
477 | 477 | de_DE |
478 | 478 | """ |
479 | 479 |
|
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: |
482 | 482 | """ |
483 | 483 | Success: Language activated. |
484 | 484 | """ |
485 | 485 |
|
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: |
488 | 488 | """ |
489 | 489 | en_US |
490 | 490 | """ |
@@ -536,15 +536,15 @@ Feature: Manage translation files for a WordPress install |
536 | 536 | en_US |
537 | 537 | """ |
538 | 538 |
|
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` |
544 | 544 |
|
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: |
547 | 547 | | language | status | |
548 | 548 | | en_US | active | |
549 | 549 | | nl_NL | installed | |
550 | | - And STDERR should be empty |
| 550 | + And STDERR should be empty |
0 commit comments