Skip to content

Commit 852c3a0

Browse files
committed
Use Behat internal var DB_SOCKET
1 parent 040008e commit 852c3a0

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
},
2323
"require-dev": {
2424
"wp-cli/db-command": "^1.3 || ^2",
25-
"wp-cli/wp-cli-tests": "^4.2.7"
25+
"wp-cli/wp-cli-tests": "^4.2.8"
2626
},
2727
"config": {
2828
"process-timeout": 7200,

features/config-create.feature

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,10 @@ Feature: Create a wp-config file
173173
echo getenv( 'WP_CLI_TEST_DBSOCKET' );
174174
exit(0);
175175
}
176+
// From within Behat, the WP_CLI_TEST_DBSOCKET will be mapped to the internal
177+
// DB_SOCKET variable, as Behat pushes a new environment context.
176178
$locations = [
179+
'{DB_SOCKET}',
177180
'/var/run/mysqld/mysqld.sock',
178181
'/tmp/mysql.sock',
179182
];

0 commit comments

Comments
 (0)