Skip to content

Commit 0044f24

Browse files
committed
Call it only once
1 parent ee1fc17 commit 0044f24

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/Context/FeatureContext.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -674,8 +674,6 @@ public static function prepare( BeforeSuiteScope $scope ): void {
674674
* @AfterSuite
675675
*/
676676
public static function afterSuite( AfterSuiteScope $scope ): void {
677-
self::bootstrap_feature_context();
678-
679677
if ( self::$composer_local_repository ) {
680678
self::remove_dir( self::$composer_local_repository );
681679
self::$composer_local_repository = null;
@@ -801,8 +799,6 @@ public static function create_cache_dir(): string {
801799
* Every scenario gets its own context object.
802800
*/
803801
public function __construct() {
804-
self::bootstrap_feature_context();
805-
806802
if ( getenv( 'WP_CLI_TEST_DBROOTUSER' ) ) {
807803
$this->variables['DB_ROOT_USER'] = getenv( 'WP_CLI_TEST_DBROOTUSER' );
808804
}

0 commit comments

Comments
 (0)