diff --git a/features/core-update-db.feature b/features/core-update-db.feature index 88b48b7ce7..7ad9fc2f24 100644 --- a/features/core-update-db.feature +++ b/features/core-update-db.feature @@ -88,3 +88,19 @@ Feature: Update core's database """ Success: WordPress database upgraded on 3/3 sites. """ + + Scenario: Ensure update-db sets WP_INSTALLING constant + Given a WP install + And a before.php file: + """ + cmd_starts_with( array( 'core', 'is-installed' ) ) ) { + if ( $this->cmd_starts_with( array( 'core', 'is-installed' ) ) + || $this->cmd_starts_with( array( 'core', 'update-db' ) ) ) { define( 'WP_INSTALLING', true ); }