Skip to content

Commit ad0017b

Browse files
authored
Merge pull request #195 from wp-cli/fix/lock-version-for-sqlite-plugin
2 parents 3f903dc + ad7ef50 commit ad0017b

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

bin/install-package-tests

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ if [ -n "${WP_CLI_TEST_DBHOST}" ]; then
2828
if [ -n "${PORT}" ]; then
2929
# If the port is not numeric, then we assume it is a socket path.
3030
if is_numeric "${PORT}"; then
31-
HOST_STRING="${HOST_STRING} --port${PORT} --protocol=tcp"
31+
HOST_STRING="${HOST_STRING} --port=${PORT} --protocol=tcp"
3232
else
3333
HOST_STRING="${HOST_STRING} --socket=${PORT} --protocol=socket"
3434
fi

src/Context/FeatureContext.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ private static function get_behat_internal_variables() {
334334
* for use in subsequent WordPress copies
335335
*/
336336
private static function download_sqlite_plugin( $dir ) {
337-
$download_url = 'https://downloads.wordpress.org/plugin/sqlite-database-integration.zip';
337+
$download_url = 'https://github.com/WordPress/sqlite-database-integration/archive/refs/tags/v2.1.3.zip';
338338
$download_location = $dir . '/sqlite-database-integration.zip';
339339

340340
if ( ! is_dir( $dir ) ) {
@@ -364,6 +364,13 @@ private static function download_sqlite_plugin( $dir ) {
364364
$error_message = $zip->getStatusString();
365365
throw new RuntimeException( sprintf( 'Failed to open the zip file: %s', $error_message ) );
366366
}
367+
368+
// For the release downloaded from GitHub, the unzipped folder will contain the version number.
369+
// We're renaming the folder here for consistency's sake.
370+
rename(
371+
$dir . '/sqlite-database-integration-2.1.3/',
372+
$dir . '/sqlite-database-integration/'
373+
);
367374
}
368375

369376
/**

0 commit comments

Comments
 (0)