Skip to content

Commit 79ab26d

Browse files
committed
Added tests for exclude_tables flag
1 parent a441f7a commit 79ab26d

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

features/db-export.feature

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,17 @@ Feature: Export a WordPress database
1919
wp_cli_test.sql
2020
"""
2121
And the wp_cli_test.sql file should exist
22+
23+
Scenario: Exclude tables when exporting the dtabase
24+
Given a WP install
25+
26+
When I run `wp db export wp_cli_test.sql --exclude_tables=wp_users --porcelain`
27+
Then the wp_cli_test.sql file should exist
28+
And the wp_cli_test.sql file should not contain:
29+
"""
30+
wp_users
31+
"""
32+
And the wp_cli_test.sql file should contain:
33+
"""
34+
wp_options
35+
"""

0 commit comments

Comments
 (0)