Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slug fixes #53

Merged
merged 5 commits into from Aug 15, 2018
Merged
Diff settings

Always

Just for now

Prev

Reflect changes in tests

  • Loading branch information...
swissspidy committed Aug 15, 2018
commit d5d71ee046b329df102f33156797f8001073d7e5
@@ -209,16 +209,112 @@ Feature: Manage translation files for a WordPress install
Given a WP install
And an empty cache
And I run `wp plugin install akismet --version=3.2 --force`
And I run `wp plugin install jetpack --version=6.0 --force`

When I run `wp language plugin install akismet de_DE_formal`
Then STDOUT should contain:
"""
Downloading translation from https://downloads.wordpress.org/translation/plugin/akismet/3.2/de_DE_formal.zip
"""
And STDOUT should not contain:
"""
Downloading translation from https://downloads.wordpress.org/translation/plugin/jetpack
"""
And STDERR should be empty

When I run `wp language plugin list --all --fields=plugin,language,update,status`
Then STDOUT should be a table containing rows:
| plugin | language | update | status |
| akismet | de_DE_formal | none | installed |
| jetpack | de_DE | none | uninstalled |

When I run `wp language plugin install jetpack de_DE`
Then STDOUT should contain:
"""
Downloading translation from https://downloads.wordpress.org/translation/plugin/jetpack/6.0/de_DE.zip
"""
And STDOUT should not contain:
"""
Downloading translation from https://downloads.wordpress.org/translation/plugin/akismet
"""
And STDERR should be empty

When I run `wp language plugin list --all --fields=plugin,language,update,status`
Then STDOUT should be a table containing rows:
| plugin | language | update | status |
| akismet | de_DE_formal | none | installed |
| jetpack | de_DE | none | installed |

When I run `wp plugin install akismet --version=4.0 --force`
And I run `wp language plugin update akismet`
And I run `wp plugin install jetpack --version=6.4 --force`

When I run `wp language plugin list --all --fields=plugin,language,update,status`
Then STDOUT should be a table containing rows:
| plugin | language | update | status |
| akismet | de_DE_formal | available | installed |
| jetpack | de_DE | available | installed |

When I run `wp language plugin update akismet`
Then STDOUT should contain:
"""
Downloading translation from https://downloads.wordpress.org/translation/plugin/akismet/4.0/de_DE_formal.zip
"""
And STDOUT should not contain:
"""
Downloading translation from https://downloads.wordpress.org/translation/plugin/jetpack
"""
And STDERR should be empty

When I run `wp language plugin list --all --fields=plugin,language,update,status`
Then STDOUT should be a table containing rows:
| plugin | language | update | status |
| akismet | de_DE_formal | none | installed |
| jetpack | de_DE | available | installed |

When I run `wp language plugin update jetpack`
Then STDOUT should contain:
"""
Downloading translation from https://downloads.wordpress.org/translation/plugin/jetpack/6.4/de_DE.zip
"""
And STDERR should be empty

When I run `wp language plugin list --all --fields=plugin,language,update,status`
Then STDOUT should be a table containing rows:
| plugin | language | update | status |
| akismet | de_DE_formal | none | installed |
| jetpack | de_DE | none | installed |

@require-wp-4.0
Scenario: Ensure availability status is correct for each plugin
Given a WP install
And an empty cache
And I run `wp plugin install akismet --version=3.2 --force`
And I run `wp plugin install jetpack --version=6.0 --force`

When I run `wp language plugin install akismet de_DE`
Then STDOUT should contain:
"""
Downloading translation from https://downloads.wordpress.org/translation/plugin/akismet/3.2/de_DE.zip
"""

When I run `wp language plugin install jetpack de_DE`
And STDOUT should contain:
"""
Downloading translation from https://downloads.wordpress.org/translation/plugin/jetpack/6.0/de_DE.zip
"""
And STDERR should be empty

When I run `wp plugin install akismet --version=4.0 --force`
And I run `wp plugin install jetpack --version=6.4 --force`
And I run `wp language plugin update jetpack`
Then STDOUT should contain:
"""
Downloading translation from https://downloads.wordpress.org/translation/plugin/jetpack/6.4/de_DE.zip
"""

When I run `wp language plugin list --all --fields=plugin,language,update,status --status=installed`
Then STDOUT should be a table containing rows:
| plugin | language | update | status |
| akismet | de_DE | available | installed |
| jetpack | de_DE | none | installed |
And STDERR should be empty
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.