We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 827f541 + 177a1b0 commit 38a511eCopy full SHA for 38a511e
src/Context/FeatureContext.php
@@ -502,6 +502,14 @@ public function __construct() {
502
$this->variables['DB_HOST'] = getenv( 'WP_CLI_TEST_DBHOST' );
503
}
504
505
+ if ( getenv( 'MYSQL_TCP_PORT' ) ) {
506
+ $this->variables['MYSQL_PORT'] = getenv( 'MYSQL_TCP_PORT' );
507
+ }
508
+
509
+ if ( getenv( 'MYSQL_HOST' ) ) {
510
+ $this->variables['MYSQL_HOST'] = getenv( 'MYSQL_HOST' );
511
512
513
self::$db_settings['dbuser'] = $this->variables['DB_USER'];
514
self::$db_settings['dbpass'] = $this->variables['DB_PASSWORD'];
515
self::$db_settings['dbhost'] = $this->variables['DB_HOST'];
0 commit comments