Skip to content

Commit b93793b

Browse files
committed
Try expanding on the user definition
1 parent d2d1562 commit b93793b

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

‎features/install-wp-tests.feature‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Feature: Scaffold install-wp-tests.sh tests
2828
And I run `wp plugin path`
2929
And save STDOUT as {PLUGIN_DIR}
3030
And I run `wp scaffold plugin hello-world`
31-
And I run `MYSQL_PWD={DB_PASSWORD} mysql -u {DB_USER} -e "DROP DATABASE IF EXISTS wp_cli_test_scaffold"`
31+
And I run `MYSQL_PWD={DB_PASSWORD} mysql -u '{DB_USER}'@'%' -e "DROP DATABASE IF EXISTS wp_cli_test_scaffold"`
3232
And I try `rm -fr /tmp/behat-wordpress-tests-lib`
3333
And I try `rm -fr /tmp/behat-wordpress`
3434

@@ -74,7 +74,7 @@ Feature: Scaffold install-wp-tests.sh tests
7474
install_test_suite
7575
"""
7676

77-
When I run `MYSQL_PWD={DB_PASSWORD} mysql -u {DB_USER} -e "SHOW DATABASES"`
77+
When I run `MYSQL_PWD={DB_PASSWORD} mysql -u '{DB_USER}'@'%' -e "SHOW DATABASES"`
7878
Then the return code should be 0
7979
And STDOUT should contain:
8080
"""
@@ -112,7 +112,7 @@ Feature: Scaffold install-wp-tests.sh tests
112112
And I run `wp plugin path`
113113
And save STDOUT as {PLUGIN_DIR}
114114
And I run `wp scaffold plugin hello-world`
115-
And I run `MYSQL_PWD={DB_PASSWORD} mysql -u {DB_USER} -e "DROP DATABASE IF EXISTS wp_cli_test_scaffold"`
115+
And I run `MYSQL_PWD={DB_PASSWORD} mysql -u '{DB_USER}'@'%' -e "DROP DATABASE IF EXISTS wp_cli_test_scaffold"`
116116
And I try `rm -fr /tmp/behat-wordpress-tests-lib`
117117
And I try `rm -fr /tmp/behat-wordpress`
118118
@@ -171,7 +171,7 @@ Feature: Scaffold install-wp-tests.sh tests
171171
install_test_suite
172172
"""
173173
174-
When I run `MYSQL_PWD={DB_PASSWORD} mysql -u {DB_USER} -e "SHOW DATABASES"`
174+
When I run `MYSQL_PWD={DB_PASSWORD} mysql -u '{DB_USER}'@'%' -e "SHOW DATABASES"`
175175
Then the return code should be 0
176176
And STDOUT should contain:
177177
"""
@@ -186,7 +186,7 @@ Feature: Scaffold install-wp-tests.sh tests
186186
And I run `wp plugin path`
187187
And save STDOUT as {PLUGIN_DIR}
188188
And I run `wp scaffold plugin hello-world`
189-
And I run `MYSQL_PWD={DB_PASSWORD} mysql -u {DB_USER} -e "DROP DATABASE IF EXISTS wp_cli_test_scaffold"`
189+
And I run `MYSQL_PWD={DB_PASSWORD} mysql -u '{DB_USER}'@'%' -e "DROP DATABASE IF EXISTS wp_cli_test_scaffold"`
190190
And I try `rm -fr /tmp/behat-wordpress-tests-lib`
191191
And I try `rm -fr /tmp/behat-wordpress`
192192
@@ -235,7 +235,7 @@ Feature: Scaffold install-wp-tests.sh tests
235235
install_test_suite
236236
"""
237237
238-
When I run `MYSQL_PWD={DB_PASSWORD} mysql -u {DB_USER} -e "SHOW DATABASES"`
238+
When I run `MYSQL_PWD={DB_PASSWORD} mysql -u '{DB_USER}'@'%' -e "SHOW DATABASES"`
239239
Then the return code should be 0
240240
And STDOUT should contain:
241241
"""

0 commit comments

Comments
 (0)