Skip to content

Commit 0624509

Browse files
Adding new tests
1 parent 2b80cd7 commit 0624509

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

features/db.feature

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,3 +326,13 @@ Feature: Perform database operations
326326
"""
327327
latin1_spanish_ci
328328
"""
329+
330+
Scenario: Running an UPDATE query should return the number of affected rows
331+
Given a WP install
332+
When I run `wp db query "UPDATE wp_users SET user_status = 1 WHERE ID = 2"`
333+
Then STDOUT should contain "Rows affected: 1"
334+
335+
Scenario: Running an DELETE query should return the number of affected rows
336+
Given a WP install
337+
When I run `wp db query "DELETE FROM wp_users WHERE ID = 2"`
338+
Then STDOUT should contain "Rows affected: 1"

0 commit comments

Comments
 (0)