Skip to content

Commit 7bba651

Browse files
committed
test: update test for --exclude_tables_data
1 parent b61d0d9 commit 7bba651

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

features/db-export.feature

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,15 @@ Feature: Export a WordPress database
3737
Scenario: Exclude data of certain tables when exporting the database
3838
Given a WP install
3939

40-
When I run `wp db export wp_cli_test.sql --exclude_tables_data=wp_actionscheduler_logs --porcelain`
40+
When I run `wp db export wp_cli_test.sql --exclude_tables_data=wp_users --porcelain`
4141
Then the wp_cli_test.sql file should exist
4242
And the wp_cli_test.sql file should contain:
4343
"""
44-
wp_actionscheduler_logs
44+
wp_users
45+
"""
46+
And the wp_cli_test.sql file should not contain:
47+
"""
48+
INSERT INTO `wp_users`
4549
"""
4650

4751
Scenario: Export database to STDOUT

0 commit comments

Comments
 (0)