Skip to content

v1.4.0

Compare
Choose a tag to compare
@srtfisher srtfisher released this 20 Jan 16:31
· 3 commits to 1.x since this release
7a6609d

📢 Minimum PHP version is now 8.2. The framework supports 8.2 - 8.4.

Added

  • ✨ Experimental feature ✨: Use the home URL as the base URL for testing rather than WP_TESTS_DOMAIN. This can be enabled by calling the with_experimental_testing_url_host() method of the installation manager or by setting the MANTLE_EXPERIMENTAL_TESTING_USE_HOME_URL_HOST environment variable.
    Once enabled, the home URL will be used as the base URL for testing rather the hard-coded WP_TESTS_DOMAIN. It will also infer the HTTPS status from the home URL.
  • Added with_option()/with_home_url()/with_site_url() methods to the installation manager.
  • Add a without_local_object_cache() method to prevent the object-cache.php drop-in from being loaded locally.
  • Added a better dump() method to the response object when testing HTTP requests that will dump the request/response to the console.

Changed

  • Removed support for PHP 8.1. The minimum PHP version is now 8.2.
  • For projects that require PHPUnit 9, the phpunit/phpunit version is now set to ^9.6.22.
  • Upgraded to Symfony 7.0 packages.
  • Disable spatie/once's cache if found during unit testing.
  • Ensure that the QUERY_STRING server variable is set when testing HTTP requests.

Fixed

  • Ensure that built-in taxonomies properly register their rewrite rules during testing.