Skip to content

Commit cf5db36

Browse files
committed
Limit test to mysql 5.7 and up due to SQL syntax
1 parent db853e7 commit cf5db36

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

features/config-create.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,11 +243,11 @@ Feature: Create a wp-config file
243243
PasswordWith'SingleQuotes'
244244
"""
245245
246-
@require-mysql
246+
@require-mysql-5.7
247247
Scenario: Configure with required SSL connection
248248
Given an empty directory
249249
And WP files
250-
And I try `MYSQL_PWD='{DB_ROOT_PASSWORD}' MYSQL_HOST='{MYSQL_HOST}' MYSQL_TCP_PORT='{MYSQL_PORT}' mysql -u root -e "CREATE USER 'wp_cli_test_ssl'@'%' IDENTIFIED BY 'password2' REQUIRE SSL;"`
250+
And I run `MYSQL_PWD='{DB_ROOT_PASSWORD}' MYSQL_HOST='{MYSQL_HOST}' MYSQL_TCP_PORT='{MYSQL_PORT}' mysql -u root -e "CREATE USER IF NOT EXISTS 'wp_cli_test_ssl'@'%' IDENTIFIED BY 'password2' REQUIRE SSL;"`
251251
252252
When I try `wp config create --dbhost=127.0.0.1 --dbname=wp_cli_test --dbuser=wp_cli_test_ssl --dbpass=password2 --ssl`
253253
Then the return code should be 0

0 commit comments

Comments
 (0)