Skip to content

Commit

Permalink
Merge pull request #197 from wp-cli/add/db-socket-env
Browse files Browse the repository at this point in the history
  • Loading branch information
schlessera committed Dec 20, 2023
2 parents fac747f + 29e4546 commit c921f04
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 4 additions & 0 deletions src/Context/FeatureContext.php
Expand Up @@ -626,6 +626,10 @@ public function __construct() {
$this->variables['MYSQL_HOST'] = getenv( 'MYSQL_HOST' );
}

if ( getenv( 'WP_CLI_TEST_DBSOCKET' ) ) {
$this->variables['DB_SOCKET'] = getenv( 'WP_CLI_TEST_DBSOCKET' );
}

self::$db_settings['dbname'] = $this->variables['DB_NAME'];
self::$db_settings['dbuser'] = $this->variables['DB_USER'];
self::$db_settings['dbpass'] = $this->variables['DB_PASSWORD'];
Expand Down
3 changes: 0 additions & 3 deletions utils/mapped_socket_folder/README.md

This file was deleted.

0 comments on commit c921f04

Please sign in to comment.