Skip to content

Commit 362a227

Browse files
committed
Add socket env to internal variables
1 parent fac747f commit 362a227

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Context/FeatureContext.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -626,6 +626,10 @@ public function __construct() {
626626
$this->variables['MYSQL_HOST'] = getenv( 'MYSQL_HOST' );
627627
}
628628

629+
if ( getenv( 'WP_CLI_TEST_DBSOCKET' ) ) {
630+
$this->variables['DB_SOCKET'] = getenv( 'WP_CLI_TEST_DBSOCKET' );
631+
}
632+
629633
self::$db_settings['dbname'] = $this->variables['DB_NAME'];
630634
self::$db_settings['dbuser'] = $this->variables['DB_USER'];
631635
self::$db_settings['dbpass'] = $this->variables['DB_PASSWORD'];

0 commit comments

Comments
 (0)