diff --git a/src/Context/FeatureContext.php b/src/Context/FeatureContext.php index 353ddf60..a2dc58e5 100644 --- a/src/Context/FeatureContext.php +++ b/src/Context/FeatureContext.php @@ -364,6 +364,13 @@ private static function download_sqlite_plugin( $dir ) { $error_message = $zip->getStatusString(); throw new RuntimeException( sprintf( 'Failed to open the zip file: %s', $error_message ) ); } + + // For the release downloaded from GitHub, the unzipped folder will contain the version number. + // We're renaming the folder here for consistency's sake. + rename( + $dir . '/sqlite-database-integration-2.1.3/', + $dir . '/sqlite-database-integration/' + ); } /**