diff --git a/.env b/.env index 958946f5b7..835700b6d6 100644 --- a/.env +++ b/.env @@ -71,10 +71,3 @@ LOCAL_WP_ENVIRONMENT_TYPE=local # The URL to use when running e2e tests. WP_BASE_URL=http://localhost:${LOCAL_PORT} - -## -# The revision number of the WordPress Importer plugin to use when running unit tests. -# -# This should be an SVN revision number from the official plugin repository on wordpress.org. -## -WP_IMPORTER_REVISION=2387243 diff --git a/tools/local-env/scripts/install.js b/tools/local-env/scripts/install.js index 5b60d4c11a..99d42314e9 100644 --- a/tools/local-env/scripts/install.js +++ b/tools/local-env/scripts/install.js @@ -52,7 +52,8 @@ function wp_cli( cmd ) { * Downloads the WordPress Importer plugin for use in tests. */ function install_wp_importer() { - const test_plugin_directory = 'tests/phpunit/data/plugins/wordpress-importer'; + const testPluginDirectory = 'tests/phpunit/data/plugins/wordpress-importer'; - execSync( `docker compose exec -T php rm -rf ${test_plugin_directory} && svn checkout -r ${process.env.WP_IMPORTER_REVISION} https://plugins.svn.wordpress.org/wordpress-importer/trunk/ ${test_plugin_directory}`, { stdio: 'inherit' } ); + execSync( `docker compose exec -T php rm -rf ${testPluginDirectory}`, { stdio: 'inherit' } ); + execSync( `docker compose exec -T php git clone https://github.com/WordPress/wordpress-importer.git ${testPluginDirectory} --depth=1 --branch 0.7`, { stdio: 'inherit' } ); }