mirror of
https://fast.feibisi.com/https://github.com/wp-cli/scaffold-command.git
synced 2025-10-03 16:51:08 +08:00
fix MYSQL_HOST
This commit is contained in:
parent
d43dce5931
commit
b193426b5e
1 changed files with 5 additions and 5 deletions
|
@ -76,7 +76,7 @@ Feature: Scaffold install-wp-tests.sh tests
|
|||
"""
|
||||
|
||||
# Hardcoded for GHA, needs to be made more flexible for local setups.
|
||||
When I run `mysql -u{DB_USER} -p{DB_PASSWORD} -h(MYSQL_HOST} -P{MYSQL_PORT} --protocol=tcp -e "SHOW DATABASES"`
|
||||
When I run `mysql -u{DB_USER} -p{DB_PASSWORD} -h{MYSQL_HOST} -P{MYSQL_PORT} --protocol=tcp -e "SHOW DATABASES"`
|
||||
Then the return code should be 0
|
||||
And STDOUT should contain:
|
||||
"""
|
||||
|
@ -115,7 +115,7 @@ Feature: Scaffold install-wp-tests.sh tests
|
|||
And save STDOUT as {PLUGIN_DIR}
|
||||
And I run `wp scaffold plugin hello-world`
|
||||
# Hardcoded for GHA, needs to be made more flexible for local setups.
|
||||
And I run `mysql -u{DB_USER} -p{DB_PASSWORD} -h(MYSQL_HOST} -P{MYSQL_PORT} --protocol=tcp -e "DROP DATABASE IF EXISTS wp_cli_test_scaffold"`
|
||||
And I run `mysql -u{DB_USER} -p{DB_PASSWORD} -h{MYSQL_HOST} -P{MYSQL_PORT} --protocol=tcp -e "DROP DATABASE IF EXISTS wp_cli_test_scaffold"`
|
||||
And I try `rm -fr /tmp/behat-wordpress-tests-lib`
|
||||
And I try `rm -fr /tmp/behat-wordpress`
|
||||
|
||||
|
@ -175,7 +175,7 @@ Feature: Scaffold install-wp-tests.sh tests
|
|||
"""
|
||||
|
||||
# Hardcoded for GHA, needs to be made more flexible for local setups.
|
||||
When I run `mysql -u{DB_USER} -p{DB_PASSWORD} -h(MYSQL_HOST} -P{MYSQL_PORT} --protocol=tcp -e "SHOW DATABASES"`
|
||||
When I run `mysql -u{DB_USER} -p{DB_PASSWORD} -h{MYSQL_HOST} -P{MYSQL_PORT} --protocol=tcp -e "SHOW DATABASES"`
|
||||
Then the return code should be 0
|
||||
And STDOUT should contain:
|
||||
"""
|
||||
|
@ -191,7 +191,7 @@ Feature: Scaffold install-wp-tests.sh tests
|
|||
And save STDOUT as {PLUGIN_DIR}
|
||||
And I run `wp scaffold plugin hello-world`
|
||||
# Hardcoded for GHA, needs to be made more flexible for local setups.
|
||||
And I run `mysql -u{DB_USER} -p{DB_PASSWORD} -h(MYSQL_HOST} -P{MYSQL_PORT} --protocol=tcp -e "DROP DATABASE IF EXISTS wp_cli_test_scaffold"`
|
||||
And I run `mysql -u{DB_USER} -p{DB_PASSWORD} -h{MYSQL_HOST} -P{MYSQL_PORT} --protocol=tcp -e "DROP DATABASE IF EXISTS wp_cli_test_scaffold"`
|
||||
And I try `rm -fr /tmp/behat-wordpress-tests-lib`
|
||||
And I try `rm -fr /tmp/behat-wordpress`
|
||||
|
||||
|
@ -241,7 +241,7 @@ Feature: Scaffold install-wp-tests.sh tests
|
|||
"""
|
||||
|
||||
# Hardcoded for GHA, needs to be made more flexible for local setups.
|
||||
When I run `mysql -u{DB_USER} -p{DB_PASSWORD} -h(MYSQL_HOST} -P{MYSQL_PORT} --protocol=tcp -e "SHOW DATABASES"`
|
||||
When I run `mysql -u{DB_USER} -p{DB_PASSWORD} -h{MYSQL_HOST} -P{MYSQL_PORT} --protocol=tcp -e "SHOW DATABASES"`
|
||||
Then the return code should be 0
|
||||
And STDOUT should contain:
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue