Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Danny Froberg
Polylang Cli
Commits
9ca58b3d
Unverified
Commit
9ca58b3d
authored
Aug 23, 2017
by
Peter J. Herrel
Browse files
add tests for 'wp pll term list' subcommand
parent
6748d4bf
Changes
1
Hide whitespace changes
Inline
Side-by-side
features/term.feature
View file @
9ca58b3d
...
...
@@ -46,3 +46,23 @@ Feature: Manage WordPress taxonomy terms and their translations.
Success: Deleted 2 of 2 terms.
"""
And
the return code should be 0
@pll-term-list
Scenario
:
List taxonomy terms for a language
When
I run `wp pll lang create de de de_DE && wp pll term generate post_tag --count=3 --format=ids`
Then
STDOUT should not be empty
When
I run `wp pll term list post_tag nl --format=ids`
Then STDOUT should contain
:
"""
11 13 9
"""
And
the return code should be 0
When
I run `wp pll term list post_tag de --format=ids`
Then STDOUT should contain
:
"""
12 14 10
"""
And
the return code should be 0
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment