File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed
Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 /**
You can’t perform that action at this time.
0 commit comments