Skip to content

Commit 7acbb29

Browse files
committed
Update tests
1 parent e4abe55 commit 7acbb29

File tree

2 files changed

+6
-24
lines changed

2 files changed

+6
-24
lines changed

features/db-import.feature

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -135,22 +135,13 @@ Feature: Import a WordPress database
135135
Then the wp_cli_test.sql file should exist
136136

137137
When I try `wp db import --defaults --debug`
138-
Then STDERR should contain:
139-
"""
140-
Debug (db): Running shell command: /usr/bin/env mysql --no-auto-rehash
141-
"""
138+
Then STDERR should match #Debug \(db\): Running shell command: /usr/bin/env (mysql|mariadb) --no-auto-rehash#
142139

143140
When I try `wp db import --debug`
144-
Then STDERR should contain:
145-
"""
146-
Debug (db): Running shell command: /usr/bin/env mysql --no-defaults --no-auto-rehash
147-
"""
141+
Then STDERR should match #Debug \(db\): Running shell command: /usr/bin/env (mysql|mariadb) --no-defaults --no-auto-rehash#
148142

149143
When I try `wp db import --no-defaults --debug`
150-
Then STDERR should contain:
151-
"""
152-
Debug (db): Running shell command: /usr/bin/env mysql --no-defaults --no-auto-rehash
153-
"""
144+
Then STDERR should match #Debug \(db\): Running shell command: /usr/bin/env (mysql|mariadb) --no-defaults --no-auto-rehash#
154145

155146
@require-wp-4.2
156147
Scenario: Import db that has emoji in post

features/db-query.feature

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -76,22 +76,13 @@ Feature: Query the database with WordPress' MySQL config
7676
Given a WP install
7777

7878
When I try `wp db query --defaults --debug`
79-
Then STDERR should contain:
80-
"""
81-
Debug (db): Running shell command: /usr/bin/env mysql --no-auto-rehash
82-
"""
79+
Then STDERR should match #Debug \(db\): Running shell command: /usr/bin/env (mysql|mariadb) --no-auto-rehash#
8380

8481
When I try `wp db query --debug`
85-
Then STDERR should contain:
86-
"""
87-
Debug (db): Running shell command: /usr/bin/env mysql --no-defaults --no-auto-rehash
88-
"""
82+
Then STDERR should match #Debug \(db\): Running shell command: /usr/bin/env (mysql|mariadb) --no-defaults --no-auto-rehash#
8983

9084
When I try `wp db query --no-defaults --debug`
91-
Then STDERR should contain:
92-
"""
93-
Debug (db): Running shell command: /usr/bin/env mysql --no-defaults --no-auto-rehash
94-
"""
85+
Then STDERR should match #Debug \(db\): Running shell command: /usr/bin/env (mysql|mariadb) --no-defaults --no-auto-rehash#
9586

9687
Scenario: SQL modes do not include any of the modes incompatible with WordPress
9788
Given a WP install

0 commit comments

Comments
 (0)