Skip to content

Commit 54cae59

Browse files
committed
Add tests for json format
1 parent 8b94b9e commit 54cae59

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

‎features/sqlite_tables.feature‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,11 @@ Feature: WP-CLI SQLite Tables Command
3232
"""
3333
wp_users,wp_usermeta,wp_termmeta,wp_terms,wp_term_taxonomy,wp_term_relationships,wp_commentmeta,wp_comments,wp_links,wp_options,wp_postmeta,wp_posts
3434
"""
35+
36+
@require-sqlite
37+
Scenario: Successfully list the tables in the SQLite database in a CSV format
38+
When I run `wp sqlite tables --format=json`
39+
Then STDOUT should contain:
40+
"""
41+
["wp_users","wp_usermeta","wp_termmeta","wp_terms","wp_term_taxonomy","wp_term_relationships","wp_commentmeta","wp_comments","wp_links","wp_options","wp_postmeta","wp_posts"]
42+
"""

0 commit comments

Comments
 (0)