Skip to content

Commit

Permalink
Add socket env to internal variables
Browse files Browse the repository at this point in the history
  • Loading branch information
schlessera committed Dec 20, 2023
1 parent fac747f commit 362a227
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Context/FeatureContext.php
Original file line number Diff line number Diff line change
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

0 comments on commit 362a227

Please sign in to comment.