Skip to content

Commit

Permalink
Merge pull request #215 from jeroenpf/fix/use-latest-sqlite-version
Browse files Browse the repository at this point in the history
  • Loading branch information
swissspidy authored Jul 30, 2024
2 parents 4d4c920 + 91c88d3 commit ca86c93
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/Context/FeatureContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ private static function get_behat_internal_variables() {
* for use in subsequent WordPress copies
*/
private static function download_sqlite_plugin( $dir ) {
$download_url = 'https://github.com/WordPress/sqlite-database-integration/archive/refs/tags/v2.1.11.zip';
$download_url = 'https://downloads.wordpress.org/plugin/sqlite-database-integration.zip';
$download_location = $dir . '/sqlite-database-integration.zip';

if ( ! is_dir( $dir ) ) {
Expand Down Expand Up @@ -364,13 +364,6 @@ 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.11/',
$dir . '/sqlite-database-integration/'
);
}

/**
Expand Down

0 comments on commit ca86c93

Please sign in to comment.