Skip to content

Commit 379ddf2

Browse files
committed
Merge remote-tracking branch 'origin/master' into documentation-changes
2 parents b3a76f1 + c3bdc43 commit 379ddf2

File tree

2 files changed

+8
-13
lines changed

2 files changed

+8
-13
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ To use the Runner, the following is required (testing WordPress 6.7-alpha):
9595
- Server / hosting (infrastructure) with the usual configuration you use
9696
- A database where you can test (tables will be created and destroyed several times)
9797
- PHP 7.2+
98-
- MySQL 5.5+ / MariaDB 10.0+
98+
- MySQL 5.5.5+ / MariaDB 5.5.5+
9999
- NodeJS 20.x / npm 10.x / grunt
100100
- PHP Composer
101101
- Git, RSync, WGet, UnZip

prepare.php

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,8 @@
108108
}
109109

110110
/**
111-
* Sets up the SSH private key for use in the test environment if provided.
111+
* Performs a series of operations to set up the test environment. This includes creating a preparation directory,
112+
* cloning the WordPress development repository, and preparing the environment with npm.
112113
*/
113114
// Prepare an array of shell commands to set up the testing environment.
114115
perform_operations( array(
@@ -120,12 +121,6 @@
120121
// The '--depth=1' flag creates a shallow clone with a history truncated to the last commit.
121122
'git clone --depth=1 https://github.com/WordPress/wordpress-develop.git ' . escapeshellarg( $WPT_PREPARE_DIR ),
122123

123-
// Download the WordPress importer plugin zip file to the specified plugins directory.
124-
'wget -O ' . escapeshellarg( $WPT_PREPARE_DIR . '/tests/phpunit/data/plugins/wordpress-importer.zip' ) . ' https://downloads.wordpress.org/plugin/wordpress-importer.zip' . $certificate_validation,
125-
126-
// Change directory to the plugin directory, unzip the WordPress importer plugin, and remove the zip file.
127-
'cd ' . escapeshellarg( $WPT_PREPARE_DIR . '/tests/phpunit/data/plugins/' ) . '; unzip wordpress-importer.zip; rm wordpress-importer.zip',
128-
129124
// Change directory to the preparation directory, install npm dependencies, and build the project.
130125
'cd ' . escapeshellarg( $WPT_PREPARE_DIR ) . '; npm install && npm run build'
131126

@@ -303,13 +298,13 @@ function curl_selected_bits(\$k) { return in_array(\$k, array('version', 'ssl_ve
303298
log_message( 'Environment PHP Version: ' . $env_php_version );
304299

305300
/**
306-
* Checks if the detected PHP version is below 7.0.
307-
* The test runner requires PHP version 7.0 or above, and if the environment's PHP version
301+
* Checks if the detected PHP version is below 7.2.
302+
* The test runner requires PHP version 7.2 or above, and if the environment's PHP version
308303
* is lower, it logs an error message and could terminate the script.
309304
*/
310-
if ( version_compare( $env_php_version, '7.0', '<' ) ) {
311-
// Logs an error message indicating the test runner's incompatibility with PHP versions below 7.0.
312-
error_message( 'The test runner is not compatible with PHP < 7.0.' );
305+
if ( version_compare( $env_php_version, '7.2', '<' ) ) {
306+
// Logs an error message indicating the test runner's incompatibility with PHP versions below 7.2.
307+
error_message( 'The test runner is not compatible with PHP < 7.2.' );
313308
}
314309

315310
/**

0 commit comments

Comments
 (0)