Skip to content

Releases: alleyinteractive/mantle-framework

v1.5.2

06 Feb 15:12
cfb8150
Compare
Choose a tag to compare

Fixed

  • Fixed bad configuration file caling env() vs environment().

v1.5.1

06 Feb 14:34
46c75d2
Compare
Choose a tag to compare

Changed

  • Dropped nunomaduro/collision from the main alleyinteractive/mantle-framework package in favor of making the package a dependency on alleyinteractive/mantle. It still remains a dependency of mantle-framework/testkit.

v1.5.0

06 Feb 14:07
f829560
Compare
Choose a tag to compare

Changed

  • Dropped illuminate/view from the alleyinteractive/mantle-framework package. There is a conflict between the dependent package illuminate/support and spatie/once. alleyinteractive/mantle will be updated to require illuminate/view directly.
  • Upgraded mantle-framework/testkit to support nunomaduro/collision v8 (which requires PHP 8.2 and PHPUnit 10+).
  • Drop support for symfony/console v6.2. All Symfony components are now at v7.0.

v1.4.5

03 Feb 21:53
f295306
Compare
Choose a tag to compare

Fixed

  • Fixed issue setting the domain during installation.

v1.4.4

03 Feb 15:07
5efb651
Compare
Choose a tag to compare

Fixed

  • Ensure that when setting the home URL for testing with Installation_Manager::with_url() also sets the test domain.
  • When setting a HTTPS home URL for testing, ensure that the site is installed using HTTPS.

v1.4.3

31 Jan 17:03
082ce20
Compare
Choose a tag to compare

Fixed

  • Fixed issue when making HTTP requests in tests using partial URL paths.

v1.4.2

28 Jan 15:17
dc33c50
Compare
Choose a tag to compare

Fixed

  • Fix path to load the vip-config.php file during testing.

v1.4.1

21 Jan 19:34
e9714e2
Compare
Choose a tag to compare

Changed

  • Load vip-config.php during testing using the WP_CONTENT_DIR constant.
  • Use the testing directory (WP_TESTS_INSTALL_PATH) for ABSPATH if not set.

v1.4.0

20 Jan 16:31
7a6609d
Compare
Choose a tag to compare

📢 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.

v1.3.3

10 Jan 21:28
08a66b0
Compare
Choose a tag to compare

Added

  • Added Mantle\Support\Helpers\capture helper to capture output from a callback using output buffering.

Changed

  • Updated the Mantle\Support\Helpers\defer helper to be able to used outside
    of the Mantle Framework via the shutdown hook.

Fixed

  • Allow Filter/Action attributes to be used multiple times on the same method.