We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c589829 commit 09560b9Copy full SHA for 09560b9
bin/install-package-tests
@@ -31,6 +31,16 @@ if [ -n "$WP_CLI_TEST_DBROOTPASS" ]; then
31
PASSWORD_STRING="-p$WP_CLI_TEST_DBROOTPASS"
32
fi
33
34
+TEST_USER=wp_cli_test
35
+if [ -n "$WP_CLI_TEST_DBUSER" ]; then
36
+ TEST_USER="$WP_CLI_TEST_DBUSER"
37
+fi
38
+
39
+TEST_PASSWORD=password1
40
+if [ -n "$WP_CLI_TEST_DBPASS" ]; then
41
+ TEST_PASSWORD="$WP_CLI_TEST_DBPASS"
42
43
44
# Prepare the database for running the tests with a MySQL version 8.0 or higher.
45
install_db_8_0_plus() {
46
mysql -e "CREATE DATABASE IF NOT EXISTS \`wp_cli_test\`;" $HOST_STRING -u"$USER" "$PASSWORD_STRING"
0 commit comments