Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3744 from wp-cli/double-underscore
Use `process_csv_arguments_to_arrays()` to process `__` CSV into arrays
- Loading branch information
Showing
6 changed files
with
59 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
Feature: List WordPress comments | ||
|
||
@require-wp-4.1 | ||
Scenario: Filter comments based on `comment__in` and `comment__not_in` | ||
Given a WP install | ||
|
||
When I run `wp comment create --comment_post_ID=1 --porcelain` | ||
Then save STDOUT as {COMMENT_ID} | ||
|
||
When I run `wp comment list --comment__in=1,{COMMENT_ID} --format=ids --orderby=comment_ID --order=ASC` | ||
Then STDOUT should be: | ||
""" | ||
1 {COMMENT_ID} | ||
""" | ||
|
||
When I run `wp comment list --comment__in=1 --format=ids --orderby=comment_ID --order=ASC` | ||
Then STDOUT should be: | ||
""" | ||
1 | ||
""" | ||
|
||
When I run `wp comment list --comment__not_in=1,{COMMENT_ID} --format=ids --orderby=comment_ID --order=ASC` | ||
Then STDOUT should be: | ||
""" | ||
""" | ||
|
||
When I run `wp comment list --comment__not_in=1 --format=ids --orderby=comment_ID --order=ASC` | ||
Then STDOUT should be: | ||
""" | ||
{COMMENT_ID} | ||
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters