Skip to content

Releases: alleyinteractive/mantle-framework

v1.2.0

17 Oct 14:58
1cd7774
Compare
Choose a tag to compare

Added

  • Add support for dispatching jobs to the queue after the current response has
    been sent.
  • Allow the block factory to override text when generating blocks.
  • Added new defer() helper.
  • Added Cache::flexible() method to add SWR support to the cache (docs)
  • Added support for parallel unit testing with brianium/paratest (in beta).
  • Added dynamic creation of post type/taxonomy factories.
  • Added Reset_Server trait to reset the server between tests.
  • Add with_https() to control if the request being tested is over HTTPS.
  • Add andReturnBoolean() and andReturn( fn ( $value ) => ... ) support to
    action/filter expectations
  • Add cached HTTP response support using the cache() method.

Changed

  • Breaking: Http Client pools should now be built using ->method() and ->url() instead.
  • Dropped support for Redis as a cache backend in favor of the default object
    cache drop-in.
  • Allow returning falsey from Collection::map_to_dictionary().

v1.1.3

15 Aug 03:34
2a4229b
Compare
Choose a tag to compare

Added

  • Added a with_image() helper to mocked HTTP responses.
  • Added a is_blob() and is_file() helper to Mantle\Http_Client\Response.
  • Added with_real_thumbnail() method to post factory for creating posts with
    real underlying thumbnail files.

Changed

  • Added support for faking specific HTTP requests by method.
  • Added helper for fluently building HTTP sequence responses.

Fixed

  • Fixed an issue with taxonomy registration not returning an array.

v1.1.2

20 Jun 15:23
408a5ca
Compare
Choose a tag to compare

Fixed

  • Fixed issue with the mantle-framework/testkit package depending on classes that do not exist for that package (introduced in v1.1.0).

v1.1.1

20 Jun 13:26
0aa37b7
Compare
Choose a tag to compare

Added

  • Add a with_json() helper to the HTTP client to send JSON data in a request.

Changed

  • Added types to the HTTP client methods.

Fixed

  • Fix the order of the vip-config.php loading that was added during 1.0.

v1.1.0

13 Jun 01:21
5426ee4
Compare
Choose a tag to compare

Added

  • Added a classname/the_classname helper to generate complex class names.
  • Added support for installing the Redis object-cache.php drop-in during
    testing with with_object_cache().
  • Added support for PHPUnit 11.

Changed

  • Overhauled the bootloader to be more flexible and allow for more
    customization. Supports passing configuration, custom kernels, exception
    handlers, etc. via the bootloader when configuring the application.
  • Ensure that framework configuration is properly merged into application
    configuration when booting the application. This allows for slimmer
    configuration files in the application. Service providers will always
    load without needing to be declared in the application configuration.
  • Load the wp-content/vip-config/vip-config.php file if it exists during
    testing to integrate better with VIP Go projects.

Fixed

  • Fixed issue with command jobs not working properly.
  • Ensure that unit tests fail when a project's installation script fails.
  • Fix anonymous queue jobs from WP-CLI failing to run.
  • Fixed issue with HTTP Client not returning the proper headers.

v0.12.13

07 May 18:20
79f5e67
Compare
Choose a tag to compare

What's Changed

  • Ensure Composer is properly loaded during unit tests when installing by @srtfisher in #542

Full Changelog: v0.12.12...v0.12.13

v1.0.7

29 Apr 14:32
9d91deb
Compare
Choose a tag to compare

Added

  • Added a block_factory() helper to generate blocks in tests.

Changed

  • Changed Hookable to accept all arguments passed to the add_action() and
    add_filter() functions.

Fixed

  • Prevent sending mail during the install wp_install() call in unit tests by
    mocking the $phpmailer global earlier.
  • Allow anonymous models to define events via Model::created() methods.
  • Fixed the Collision printer with PHPUnit 10.

v1.0.6

19 Apr 16:16
4c8c2dd
Compare
Choose a tag to compare

Fixed

  • Properly disabling VIP's alloptions protections during unit testing
    (previously applied in v1.0.5).

Full Changelog: v1.0.5...v1.0.6

v1.0.5

18 Apr 15:41
8a2a670
Compare
Choose a tag to compare

Changed

  • Disable VIP's pre_wp_load_alloptions_protections protection during unit testing.

Full Changelog: v1.0.4...v1.0.5

v1.0.4

17 Apr 16:46
87f24c8
Compare
Choose a tag to compare

Added

  • Define the WP_RUN_CORE_TESTS constant during unit tests.

Fixed

  • Ensure that dumping the content dumps non-json content,