Skip to content

Commit df036da

Browse files
committed
Reorder DB init
1 parent ede38d4 commit df036da

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Context/FeatureContext.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -502,14 +502,14 @@ public function __construct() {
502502
$this->variables['DB_HOST'] = getenv( 'WP_CLI_TEST_DBHOST' );
503503
}
504504

505-
$this->drop_db();
506-
$this->set_cache_dir();
507-
508505
self::$db_settings['dbuser'] = $this->variables['DB_USER'];
509506
self::$db_settings['dbpass'] = $this->variables['DB_PASSWORD'];
510507
self::$db_settings['dbhost'] = $this->variables['DB_HOST'];
511508

512509
$this->variables['CORE_CONFIG_SETTINGS'] = Utils\assoc_args_to_str( self::$db_settings );
510+
511+
$this->drop_db();
512+
$this->set_cache_dir();
513513
}
514514

515515
/**

0 commit comments

Comments
 (0)