Skip to content

Commit f655661

Browse files
committed
Adjust some tests
1 parent 7abb116 commit f655661

File tree

4 files changed

+10
-13
lines changed

4 files changed

+10
-13
lines changed

features/db-columns.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Feature: Display information about a given table.
22

33
# This requires conditional tags to target different DB versions, as bigint(20) is only bigint on MySQL 8.
4-
@require-wp-4.2 @broken
4+
@broken
55
Scenario: Display information about the wp_posts table
66
Given a WP install
77

features/db-import.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ Feature: Import a WordPress database
151151
When I try `wp db import --no-defaults --debug`
152152
Then STDERR should match #Debug \(db\): Running shell command: /usr/bin/env (mysql|mariadb) --no-defaults --no-auto-rehash#
153153

154-
@require-wp-4.2 @require-mysql-or-mariadb
154+
@require-mysql-or-mariadb
155155
Scenario: Import db that has emoji in post
156156
Given a WP install
157157

@@ -188,7 +188,7 @@ Feature: Import a WordPress database
188188
🍣
189189
"""
190190

191-
@require-wp-4.2 @require-sqlite
191+
@require-sqlite
192192
Scenario: Import db that has emoji in post
193193
Given a WP install
194194

features/db-search.feature

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -872,7 +872,6 @@ Feature: Search through the database
872872
When I run `wp db search 'https://' --regex`
873873
Then the return code should be 0
874874

875-
@require-wp-4.7
876875
Scenario: Search with output options
877876
Given a WP install
878877

@@ -1002,9 +1001,8 @@ Feature: Search through the database
10021001
INSERT INTO `TABLE` (`VALUES`, `back``tick`, `single'double"quote`) VALUES ('v"v`v\'v\\v_v1', 'v"v`v\'v\\v_v1', 'v"v`v\'v\\v_v1' );
10031002
INSERT INTO `TABLE` (`VALUES`, `back``tick`, `single'double"quote`) VALUES ('v"v`v\'v\\v_v2', 'v"v`v\'v\\v_v2', 'v"v`v\'v\\v_v2' );
10041003
"""
1005-
And save the {RUN_DIR}/esc_sql_ident.sql file as {QUERY}
1006-
When I run `wp db query 'CREATE TABLE `TABLE` (`KEY` INT(11) UNSIGNED NOT NULL AUTO_INCREMENT, `VALUES` TEXT, `back``tick` TEXT, `single\'double"quote` TEXT, PRIMARY KEY (`KEY`) );'`
1007-
And I run `wp db query 'INSERT INTO `TABLE` (`VALUES`, `back``tick`, `single\'double"quote`) VALUES (\'v"v`v\\'v\\v_v1', \'v"v`v\\'v\\v_v1\', \'v"v`v\\'v\\v_v1\' );'`
1004+
1005+
When I run `wp db query "SOURCE esc_sql_ident.sql;"`
10081006
Then STDERR should be empty
10091007

10101008
When I run `wp db search 'v_v' TABLE --all-tables`

features/db-tables.feature

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,7 @@ Feature: List database tables
4343
When I run `wp db tables`
4444
Then STDOUT should contain:
4545
"""
46-
_mysql_data_types_cache
4746
wp_users
48-
sqlite_sequence
4947
wp_usermeta
5048
wp_termmeta
5149
wp_terms
@@ -162,9 +160,7 @@ Feature: List database tables
162160
When I run `wp db tables`
163161
Then STDOUT should contain:
164162
"""
165-
_mysql_data_types_cache
166163
wp_users
167-
sqlite_sequence
168164
wp_usermeta
169165
wp_termmeta
170166
wp_terms
@@ -329,11 +325,14 @@ Feature: List database tables
329325
"""
330326

331327
When I run `wp db tables '*_posts' --network`
332-
Then STDOUT should be:
328+
Then STDOUT should contain:
333329
"""
334-
as_wp_2_posts
335330
as_wp_posts
336331
"""
332+
And STDOUT should contain:
333+
"""
334+
as_wp_2_posts
335+
"""
337336

338337
When I run `wp db tables '*_posts' --scope=blog`
339338
Then STDOUT should be:

0 commit comments

Comments
 (0)