Skip to content

Commit c585f1b

Browse files
committed
Update: Force sqlite to tests
1 parent 7edcff4 commit c585f1b

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎features/bootstrap/SQLiteFeatureContext.php‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ class SQLiteFeatureContext extends WPCLIFeatureContext implements Context {
1212

1313
private $db;
1414

15+
public function __construct() {
16+
putenv( 'WP_CLI_TEST_DBTYPE=sqlite' );
17+
parent::__construct();
18+
}
19+
1520
/**
1621
* @Given /^a SQL dump file named "([^"]*)" with content:$/
1722
*/
@@ -77,7 +82,6 @@ public function theFileShouldExist( $filename ) {
7782
*/
7883
public function beforeScenario( BeforeScenarioScope $scope ) {
7984
parent::beforeScenario( $scope );
80-
$this->variables['DB_TYPE'] = 'sqlite';
8185
}
8286

8387
private function connectToDatabase() {

0 commit comments

Comments
 (0)