Skip to content

Commit

Permalink
Merge pull request #115 from Lewiscowles1986/patch-3
Browse files Browse the repository at this point in the history
  • Loading branch information
schlessera authored Mar 12, 2021
2 parents 827f541 + 177a1b0 commit 38a511e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/Context/FeatureContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -502,6 +502,14 @@ public function __construct() {
$this->variables['DB_HOST'] = getenv( 'WP_CLI_TEST_DBHOST' );
}

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

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

self::$db_settings['dbuser'] = $this->variables['DB_USER'];
self::$db_settings['dbpass'] = $this->variables['DB_PASSWORD'];
self::$db_settings['dbhost'] = $this->variables['DB_HOST'];
Expand Down

0 comments on commit 38a511e

Please sign in to comment.